Matching graphs and tables