db_id stringclasses 146
values | question stringlengths 3 224 | sql stringlengths 18 577 | database_schema stringclasses 146
values |
|---|---|---|---|
geo | how many major rivers cross ohio | SELECT COUNT ( river_name ) FROM river WHERE LENGTH > 750 AND traverse = "ohio"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what state has the shortest river | SELECT DISTINCT traverse FROM river WHERE LENGTH = ( SELECT MIN ( DISTINCT LENGTH ) FROM river ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many states are next to major rivers | SELECT COUNT ( DISTINCT traverse ) FROM river WHERE LENGTH > 750; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the height of mount mckinley | SELECT mountain_altitude FROM mountain WHERE mountain_name = "mckinley"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what states does the shortest river run through | SELECT traverse FROM river WHERE LENGTH = ( SELECT MIN ( LENGTH ) FROM river ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the highest point in the state with the smallest population | SELECT t2.highest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name = t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE population = ( SELECT MIN ( population ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | which rivers run through the state with the lowest elevation in the usa | SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM highlow WHERE lowest_elevation = ( SELECT MIN ( lowest_elevation ) FROM highlow ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what rivers run through the state with the lowest point in the usa | SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM highlow WHERE lowest_elevation = ( SELECT MIN ( lowest_elevation ) FROM highlow ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what mountains are in alaska | SELECT mountain_name FROM mountain WHERE state_name = "alaska"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many states have major rivers | SELECT COUNT ( traverse ) FROM river WHERE LENGTH > 750; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the smallest state through which the longest river runs | SELECT state_name FROM state WHERE area = ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH = ( SELECT MAX ( LENGTH ) FROM river ) ) ) AND state_name IN ( SELECT traverse FROM river WHERE LENGTH = ( SELECT MAX ( LENGTH ) FROM river ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the largest state traversed by the rio grande river | SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name = "rio grande" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name = "rio grande" ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the largest of the state that the rio grande runs through | SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name = "rio grande" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name = "rio grande" ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many rivers run through the states bordering colorado | SELECT COUNT ( river_name ) FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name = "colorado" ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what state has no rivers | SELECT state_name FROM state WHERE state_name NOT IN ( SELECT traverse FROM river ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the capital of the largest state | SELECT capital FROM state WHERE area = ( SELECT MAX ( area ) FROM state ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the capital city of the largest state in the us | SELECT capital FROM state WHERE area = ( SELECT MAX ( area ) FROM state ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many cities are in texas | SELECT COUNT ( city_name ) FROM city WHERE state_name = "texas"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many cities does texas have | SELECT COUNT ( city_name ) FROM city WHERE state_name = "texas"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the area of the states | SELECT area FROM state; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many states in the us does the shortest river run through | SELECT COUNT ( DISTINCT traverse ) FROM river WHERE LENGTH = ( SELECT MIN ( DISTINCT LENGTH ) FROM river ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what rivers flow through states that border the state with the largest population | SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state ) ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what are the major cities in the largest state | SELECT city_name FROM city WHERE population > 150000 AND state_name = ( SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the area of the smallest state | SELECT area FROM state WHERE area = ( SELECT MIN ( area ) FROM state ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | which states border the longest river in the usa | SELECT border FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH = ( SELECT MAX ( LENGTH ) FROM river ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the population density of the state with the smallest population | SELECT density FROM state WHERE population = ( SELECT MIN ( population ) FROM state ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many states border the mississippi river | SELECT COUNT ( DISTINCT border ) FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE river_name = "mississippi" ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what states have a capital that is the highest point in the state | SELECT t1.state_name FROM state AS t1 JOIN highlow AS t2 ON t1.capital = t2.highest_point; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the population of the capital of the smallest state | SELECT population FROM city WHERE city_name = ( SELECT capital FROM state WHERE area = ( SELECT MIN ( area ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the population of the capital of the largest state | SELECT population FROM city WHERE city_name = ( SELECT capital FROM state WHERE area = ( SELECT MAX ( area ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the lowest point of the state with the largest area | SELECT t2.lowest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name = t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what states border states that border the state with the largest population | SELECT t1.border FROM border_info AS t2 JOIN border_info AS t1 ON t2.border = t1.state_name WHERE t2.state_name IN ( SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the size of the largest state in the usa | SELECT MAX ( area ) FROM state; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the area of the largest state | SELECT MAX ( area ) FROM state; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | which capitals are not major cities | SELECT t2.capital FROM state AS t2 JOIN city AS t1 ON t2.capital = t1.city_name WHERE t1.population <= 150000; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | give me the cities in usa | SELECT city_name FROM city; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the highest point of the state with the largest area | SELECT t2.highest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name = t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | where is massachusetts | SELECT country_name FROM state WHERE state_name = "massachusetts"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what state has the largest urban population | SELECT state_name FROM city GROUP BY state_name ORDER BY SUM ( population ) DESC LIMIT 1; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what are the major rivers in the us | SELECT river_name FROM river; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many cities named austin are there in the usa | SELECT COUNT ( city_name ) FROM city WHERE city_name = "austin"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many people live in the smallest state bordering wyoming | SELECT population FROM state WHERE population = ( SELECT MAX ( population ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name = "wyoming" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name = "wyoming" ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the length of the colorado river in texas | SELECT LENGTH FROM river WHERE river_name = "colorado" AND traverse = "texas"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the population density in the state with capital austin | SELECT density FROM state WHERE capital = "austin"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how long is the shortest river in the usa | SELECT LENGTH FROM river WHERE LENGTH = ( SELECT MIN ( LENGTH ) FROM river ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the elevation of death valley | SELECT lowest_elevation FROM highlow WHERE lowest_point = "death valley"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the average population of the us by state | SELECT AVG ( population ) FROM state; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what rivers flow through the largest state | SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what states border states that border states that border states that border texas | SELECT t1.border FROM border_info AS t2 JOIN border_info AS t1 ON t2.border = t1.state_name JOIN border_info AS t3 ON t3.border = t2.state_name JOIN border_info AS t4 ON t4.border = t3.state_name WHERE t4.state_name = "texas"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many states border on the state whose capital is boston | SELECT COUNT ( border ) FROM border_info WHERE state_name = ( SELECT state_name FROM state WHERE capital = "boston" ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what are the major cities in the states through which the major river in virginia runs | SELECT city_name FROM city WHERE population > 150000 AND state_name IN ( SELECT traverse FROM river WHERE river_name IN ( SELECT river_name FROM river WHERE LENGTH > 750 AND traverse = "virginia" ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | which states does not border texas | SELECT state_name FROM state WHERE state_name NOT IN ( SELECT border FROM border_info WHERE state_name = "texas" ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many states border the largest state | SELECT COUNT ( border ) FROM border_info WHERE state_name = ( SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | which state is the largest city in montana in | SELECT state_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "montana" ) AND state_name = "montana"; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is capital of the state with the lowest point | SELECT t1.capital FROM highlow AS t2 JOIN state AS t1 ON t1.state_name = t2.state_name WHERE t2.lowest_elevation = ( SELECT MIN ( lowest_elevation ) FROM highlow ) ; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the biggest american city in a state with a river | SELECT DISTINCT t1.city_name FROM city AS t1 JOIN river AS t2 ON t2.traverse = t1.state_name WHERE t1.population = ( SELECT MAX ( t1.population ) FROM river AS t2 JOIN city AS t1 ON t2.traverse = t1.state_name ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many rivers are in the state with the largest population | SELECT COUNT ( t2.river_name ) FROM river AS t2 JOIN state AS t1 ON t1.state_name = t2.traverse WHERE t1.state_name = ( SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state ) ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the largest state that borders the state with the lowest point in the usa | SELECT t1.state_name FROM highlow AS t3 JOIN border_info AS t1 ON t3.state_name = t1.border JOIN state AS t2 ON t2.state_name = t1.border WHERE t3.lowest_elevation = ( SELECT MIN ( lowest_elevation ) FROM highlow ) ORDER BY t2.area DESC LIMIT 1; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the capital of the state with the highest point | SELECT t1.capital FROM highlow AS t2 JOIN state AS t1 ON t1.state_name = t2.state_name WHERE t2.highest_elevation = ( SELECT MAX ( highest_elevation ) FROM highlow ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the capital of the state with the highest elevation | SELECT t1.capital FROM highlow AS t2 JOIN state AS t1 ON t1.state_name = t2.state_name WHERE t2.highest_elevation = ( SELECT MAX ( highest_elevation ) FROM highlow ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the highest point in the smallest state | SELECT t2.highest_point FROM highlow AS t2 JOIN state AS t1 ON t1.state_name = t2.state_name WHERE t1.area = ( SELECT MIN ( area ) FROM state ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how many rivers are in the state with the highest point. | SELECT COUNT ( t1.river_name ) FROM highlow AS t2 JOIN river AS t1 ON t1.traverse = t2.state_name WHERE t2.highest_elevation = ( SELECT MAX ( highest_elevation ) FROM highlow ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | how high is the highest point in the largest state | SELECT t2.highest_elevation FROM highlow AS t2 JOIN state AS t1 ON t1.state_name = t2.state_name WHERE t1.area = ( SELECT MAX ( area ) FROM state ); | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
geo | what is the longest river in the state with the highest point | SELECT t1.river_name FROM highlow AS t2 JOIN river AS t1 ON t1.traverse = t2.state_name WHERE t2.highest_elevation = ( SELECT MAX ( highest_elevation ) FROM highlow ) ORDER BY t1.length DESC LIMIT 1; | CREATE TABLE `state` (
`state_name` text
, `population` integer DEFAULT NULL
, `area` double DEFAULT NULL
, `country_name` varchar(3) NOT NULL DEFAULT ''
, `capital` text
, `density` double DEFAULT NULL
, PRIMARY KEY (`state_name`)
)
3 rows from state table:
Empty DataFrame
Columns: [state_name, population, ar... |
scholar | papers that are coauthored by Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | papers written by Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | what are the papers that have Peter Mertens and Dina Barbian as co-authors | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | What papers have Peter Mertens and Dina Barbian written ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | what paper did Peter Mertens and Dina Barbian write together ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | Has Peter Mertens and Dina Barbian written a paper together ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | Papers by Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | papers by authors Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | What papers were written by authors Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | papers by Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | papers written by authors Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | When did Peter Mertens and Dina Barbian collaborate ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | what are the collaborations of Peter Mertens and Dina Barbian ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | Have Peter Mertens and Dina Barbian written a paper together ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | Peter Mertens and Dina Barbian as co-authors | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | Does Peter Mertens ever collaborated with Dina Barbian ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | Which papers have Peter Mertens and Dina Barbian as co-authors ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | papers coauthored by Peter Mertens and Dina Barbian | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | What papers have been written by Peter Mertens and Dina Barbian ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | What papers have been written by both Peter Mertens and Dina Barbian ? | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | What papers have been written by Peter Mertens and Dina Barbian . | SELECT DISTINCT t3.paperid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Peter Mertens" AND t1.authorname = "Dina Barbian"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | who has written the most syntactic parsing papers ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | who is the most published author in syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | who has the most publications in syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | who has written the most papers on syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | List prominent scholars in syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | who wrote the most papers on syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | Who are the authors with the most published papers in syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | top syntactic parsing author | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | top author in syntactic parsing | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | who published the most in syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | who published the most papers in syntactic parsing ? | SELECT DISTINCT COUNT ( t4.paperid ) , t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid WHERE t2.keyphrasename = "syntactic parsing" GROUP BY t3.authorid ORDER BY COUNT ( t4.pa... | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | How many citation noah a smith has ? | SELECT DISTINCT COUNT ( t4.citedpaperid ) FROM paper AS t3 JOIN cite AS t4 ON t3.paperid = t4.citedpaperid JOIN writes AS t2 ON t2.paperid = t3.paperid JOIN author AS t1 ON t2.authorid = t1.authorid WHERE t1.authorname = "noah a smith"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | noah a smith citation count | SELECT DISTINCT COUNT ( t4.citedpaperid ) FROM paper AS t3 JOIN cite AS t4 ON t3.paperid = t4.citedpaperid JOIN writes AS t2 ON t2.paperid = t3.paperid JOIN author AS t1 ON t2.authorid = t1.authorid WHERE t1.authorname = "noah a smith"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | how many citations does noah a smith have ? | SELECT DISTINCT COUNT ( t4.citedpaperid ) FROM paper AS t3 JOIN cite AS t4 ON t3.paperid = t4.citedpaperid JOIN writes AS t2 ON t2.paperid = t3.paperid JOIN author AS t1 ON t2.authorid = t1.authorid WHERE t1.authorname = "noah a smith"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
scholar | How many citations does noah a smith have ? | SELECT DISTINCT COUNT ( t4.citedpaperid ) FROM paper AS t3 JOIN cite AS t4 ON t3.paperid = t4.citedpaperid JOIN writes AS t2 ON t2.paperid = t3.paperid JOIN author AS t1 ON t2.authorid = t1.authorid WHERE t1.authorname = "noah a smith"; | CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
)
3 rows from venue table:
Empty DataFrame
Columns: [venueId, venueName]
Index: []
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.