db_id
stringlengths 3
31
| query
stringlengths 18
577
| question
stringlengths 3
224
| schema
stringlengths 177
6.14k
| primary_keys
stringlengths 16
545
| foreign_keys
stringlengths 16
1.48k
|
---|---|---|---|---|---|
imdb | SELECT COUNT ( DISTINCT t1.name ) FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t3.title = "Saving Private Ryan"; | What is the number of actors in the movie " Saving Private Ryan " ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t1.name ) FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t3.title = "Saving Private Ryan"; | How many actors are in the movie " Saving Private Ryan " ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t3.title ) FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Steven Spielberg"; | How many movies did " Steven Spielberg " direct ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT title ) FROM movie WHERE release_year = 2013; | How many movies were produced in the year 2013 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT title ) FROM movie WHERE release_year = 2013; | What is the number of movies produced in 2013 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t3.title ) , t3.release_year FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Woody Allen" GROUP BY t3.release_year; | What is the number of movies directed by " Woody Allen " per year ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t2.title ) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | How many movies did " Shahab Hosseini " act in ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t2.title ) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | What is the number of movies in which " Shahab Hosseini " acted ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t2.title ) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | What is the number of movies featuring " Shahab Hosseini " ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t2.title ) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | How many movies did " Shahab Hosseini " act in | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT name ) FROM actor WHERE birth_city = "Los Angeles" AND birth_year > 2000; | How many actors were born in " Los Angeles " after 2000 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t2.title ) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Humphrey Bogart" AND t2.release_year < 1942; | How many movies did " Humphrey Bogart " act in before 1942 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t2.title ) , t2.release_year FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Brad Pitt" GROUP BY t2.release_year; | What is the number of movies that " Brad Pitt " acts in per year ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t3.title ) FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "Iraq war" AND t3.release_year = 2015; | How many movies about Iraq war were produced in 2015 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t3.title ) FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "Persians" AND t3.release_year > 1990; | How many movies about Persians were released after 1990 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t3.title ) FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Quentin Tarantino" AND t3.release_year > 2010; | How many movies did " Quentin Tarantino " direct after 2010 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t3.title ) FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Quentin Tarantino" AND t3.release_year < 2010; | How many movies did " Quentin Tarantino " direct before 2010 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t4.title ) FROM director AS t3 JOIN directed_by AS t2 ON t3.did = t2.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN made_by AS t5 ON t4.mid = t5.msid JOIN producer AS t1 ON t1.pid = t5.pid WHERE t3.name = "Quentin Tarantino" AND t4.release_year < 2010 AND t4.release_year > 2002; | How many movies did " Quentin Tarantino " direct before 2002 and after 2010 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT name ) FROM actor WHERE birth_city = "New York City" AND birth_year > 1980 AND gender = "female"; | How many female actors were born in " New York City " after 1980 ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t1.name ) FROM CAST AS t4 JOIN actor AS t1 ON t4.aid = t1.aid JOIN movie AS t5 ON t5.mid = t4.msid JOIN directed_by AS t2 ON t5.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.nationality = "Iran" AND t3.name = "Jim Jarmusch"; | find the number of actors from Iran who played in " Jim Jarmusch " movies | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT COUNT ( DISTINCT t1.name ) FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t1.nationality = "China" AND t3.title = "Rush Hour 3"; | How many actors from China have acted in " Rush Hour 3 " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | Find all movies that star both " Woody Strode " and " Jason Robards " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | Find all movies featuring " Woody Strode " and " Jason Robards " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | Find all movies featuring both " Woody Strode " and " Jason Robards " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | Find all movies featuring " Jason Robards " and " Woody Strode " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t1.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid = t1.aid JOIN movie AS t5 ON t5.mid = t4.msid JOIN CAST AS t3 ON t5.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t2.name = "Tom Hanks"; | Find all actors who acted in the same movie as " Tom Hanks " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t3.title FROM director AS t5 JOIN directed_by AS t2 ON t5.did = t2.did JOIN directed_by AS t1 ON t5.did = t1.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t4.title = "Revolutionary Road"; | What movies have the same director as the movie " Revolutionary Road " ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t3.title FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid GROUP BY t3.title ORDER BY COUNT ( DISTINCT t2.genre ) DESC LIMIT 1; | Find the movie which is classified in the most number of genres | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.nationality = "China" GROUP BY t2.title ORDER BY COUNT ( DISTINCT t1.name ) DESC LIMIT 1; | which movie has the most number of actors from China ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t1.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid = t1.aid JOIN movie AS t5 ON t5.mid = t4.msid JOIN directed_by AS t2 ON t5.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t3.name = "Quentin Tarantino" ORDER BY t5.release_year DESC LIMIT 1; | Find the actors who played in the latest movie by " Quentin Tarantino " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t3.budget , t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Quentin Tarantino" ORDER BY t3.release_year DESC LIMIT 1; | Find the name and budget of the latest movie by " Quentin Tarantino " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Jim Jarmusch" ORDER BY t3.release_year DESC LIMIT 1; | What is the latest movie by " Jim Jarmusch " | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t1.name FROM director AS t3 JOIN directed_by AS t2 ON t3.did = t2.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN made_by AS t5 ON t4.mid = t5.msid JOIN producer AS t1 ON t1.pid = t5.pid GROUP BY t1.name ORDER BY COUNT ( DISTINCT t3.name ) DESC LIMIT 1; | Which producer has worked with the most number of directors ? | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
imdb | SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t1.name = "Gabriele Ferzetti" ORDER BY t3.release_year DESC LIMIT 1; | Find the latest movie which " Gabriele Ferzetti " acted in | [Schema (values) (types)]: | imdb | actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text); | [Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid | [Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.name = "buttercup kitchen"; | how many buttercup kitchen are there in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | how many chinese restaurants are there in the bay area ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | how many places for chinese food are there in the bay area ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | how many chinese places are there in the bay area ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | how many places for chinese are there in the bay area ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.county = "santa cruz county" AND t1.name = "jamerican cuisine"; | how many jamerican cuisine are there in santa cruz county ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t1.name = "jamerican cuisine"; | where is jamerican cuisine ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | what is the best french restaurant in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | What is the best french in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | What is the best place in san francisco for french food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | Give me the best place in san francisco for french food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | Where is the best french in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | Give me the best french in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | Where is the best french restaurant in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | Give me the best restaurant in san francisco for french food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | Give me the best french restaurant in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | What is the best restaurant in san francisco for french food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" AND t1.rating = ( SELECT MAX ( t1.rating ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | Where is the best restaurant in san francisco for french food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.name = "denny"; | where is denny in the bay area ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd" AND t1.rating > 2.5; | what are some good restaurants on bethel island rd in bethel island ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd" AND t1.rating > 2.5; | give me some good restaurants on bethel island rd in bethel island ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd" AND t1.rating > 2.5; | give me a good restaurant on bethel island rd in bethel island ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd" AND t1.rating > 2.5; | what is a good restaurant on bethel island rd in bethel island ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda"; | where can we find a restaurant in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda"; | give me a restaurant in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda"; | where can we find some restaurants in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda"; | where is a restaurant in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda"; | give me some restaurants in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t1.food_type = "french" AND t1.rating > 2.5; | give me some restaurants good for french food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t1.food_type = "french" AND t1.rating > 2.5; | where are some restaurants good for french food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | how many places for french food are there in palo alto ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | how many french restaurants are there in palo alto ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | how many french restaurant are there in palo alto ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | how many places for french are there in palo alto ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.county = "yolo county" AND t1.food_type = "italian"; | how many italian restaurants are in the yolo county ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "french"; | where can i eat french food in mountain view ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT COUNT ( * ) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.name = "denny"; | how many denny are there in the bay area ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda" AND t1.rating > 2.5; | give me a good restaurant in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda" AND t1.rating > 2.5; | what are some good restaurants in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda" AND t1.rating > 2.5; | what is a good restaurant in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda" AND t1.rating > 2.5; | give me some good restaurants in alameda ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where is a good restaurant on buchanan in san francisco for arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where are some good arabics on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where is a good arabic restaurant on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | what are some good places for arabic on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me a good arabic on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me some restaurants good for arabic food on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me a good place on buchanan in san francisco for arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where is a good place on buchanan in san francisco for arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where can i eat arabic food on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me some good places on buchanan in san francisco for arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where is a arabic restaurant on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me a restaurant on buchanan in san francisco that serves good arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me a good restaurant on buchanan in san francisco for arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where is a restaurant on buchanan in san francisco that serves good arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me some good restaurants on buchanan in san francisco for arabic food ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me some good places for arabic on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where can i eat some good arabic food on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where is a good arabic on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where are some restaurants good for arabic food on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | where are some good places for arabic on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me a good arabic restaurant on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5; | give me some good arabics on buchanan in san francisco ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "french"; | where can i eat french food in the bay area ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd"; | give me some restaurants on bethel island rd in bethel island ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |
restaurants | SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd"; | give me a restaurant on bethel island rd in bethel island ? | [Schema (values) (types)]: | restaurants | GEOGRAPHIC : city_name (text) , county (text) , region (text) | RESTAURANT : id (text) , name (text) , food_type (text) , city_name (text) , rating (number) | LOCATION : restaurant_id (text) , house_number (text) , street_name (text) , city_name (text); | [Primary Keys]: geographic : city_name, restaurant : id, location : restaurant_id | [Foreign Keys]: restaurant : city_name = geographic : city_name | location : city_name = geographic : city_name |