question
stringlengths 19
162
| table_info
stringlengths 39
951
| sql_query
stringlengths 24
181
|
---|---|---|
What is the callsign that has a station type of relay and a channel number of TV-2?
|
CREATE TABLE table_24673888_1 (
callsign VARCHAR,
station_type VARCHAR,
ch__number VARCHAR
)
|
SELECT callsign FROM table_24673888_1 WHERE station_type LIKE "%relay%" AND ch__number LIKE "%tv-2%"
|
Name the country for athens
|
CREATE TABLE table_28281704_1 (
country VARCHAR,
city VARCHAR
)
|
SELECT COUNT(country) FROM table_28281704_1 WHERE city LIKE "%athens%"
|
What is the id of the product that is booked for 3 times?
|
CREATE TABLE products_booked (
product_id VARCHAR
)
|
SELECT product_id FROM products_booked GROUP BY product_id HAVING COUNT(*) = 3
|
Which constructor had Shinji Nakano as a driver?
|
CREATE TABLE table_name_71 (
constructor VARCHAR,
driver VARCHAR
)
|
SELECT constructor FROM table_name_71 WHERE driver LIKE "%shinji nakano%"
|
What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?
|
CREATE TABLE table_47667 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
)
|
SELECT "Record" FROM table_47667 WHERE "Opponent" LIKE '%magomedkhan gamzatkhanov%' AND "Method" LIKE '%submission%'
|
What was the high points when the team was Washington?
|
CREATE TABLE table_29916 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT "High points" FROM table_29916 WHERE "Team" LIKE '%washington%'
|
What year has 14 moves and an opening of C54 Italian Game?
|
CREATE TABLE table_8510 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
)
|
SELECT "Year" FROM table_8510 WHERE "Moves" = 14 AND "Opening" LIKE '%c54 italian game%'
|
What is the To par of the Player with a Score of 71-69-68=208?
|
CREATE TABLE table_name_25 (
to_par VARCHAR,
score VARCHAR
)
|
SELECT to_par FROM table_name_25 WHERE score = '-208'
|
Which Attendance has an Opponent of green bay packers, and a Week larger than 10?
|
CREATE TABLE table_78306 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
|
SELECT MIN("Attendance") FROM table_78306 WHERE "Opponent" LIKE '%green bay packers%' AND "Week" > 10
|
Who was the opponent on April 21?
|
CREATE TABLE table_63253 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
|
SELECT "Opponent" FROM table_63253 WHERE "Date" LIKE '%april 21%'
|
What country has the SBA Towers Tower Hayneville?
|
CREATE TABLE table_name_71 (
country VARCHAR,
name VARCHAR
)
|
SELECT country FROM table_name_71 WHERE name LIKE "%sba towers tower hayneville%"
|
what's the capacity with team being berwick rangers
|
CREATE TABLE table_14003108_1 (
capacity VARCHAR,
team VARCHAR
)
|
SELECT capacity FROM table_14003108_1 WHERE team LIKE "%berwick rangers%"
|
Where was the game played when the home team scored 17.7 (109)?
|
CREATE TABLE table_33565 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Venue" FROM table_33565 WHERE "Home team score" LIKE '%17.7 (109)%'
|
how many wins had series formula renault 2.0 nec and the position is 18th?
|
CREATE TABLE table_26178824_1 (
wins VARCHAR,
series VARCHAR,
position VARCHAR
)
|
SELECT wins FROM table_26178824_1 WHERE series LIKE "%formula renault 2.0 nec%" AND position LIKE "%18th%"
|
What is the average rank of Elise Matthysen in lanes under 8?
|
CREATE TABLE table_66433 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
|
SELECT AVG("Rank") FROM table_66433 WHERE "Name" LIKE '%elise matthysen%' AND "Lane" < 8
|
What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York?
|
CREATE TABLE table_name_79 (
interview INTEGER,
swimsuit VARCHAR,
country VARCHAR,
preliminaries VARCHAR,
evening_gown VARCHAR
)
|
SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country LIKE "%new york%" AND swimsuit > 9.18
|
What was the Score on February 18, 2008?
|
CREATE TABLE table_38112 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponent in the Final" text,
"Score" text
)
|
SELECT "Score" FROM table_38112 WHERE "Date" LIKE '%february 18, 2008%'
|
Which Representative has a Presentation of Credentials on september 8, 2005?
|
CREATE TABLE table_name_93 (
representative VARCHAR,
presentation_of_credentials VARCHAR
)
|
SELECT representative FROM table_name_93 WHERE presentation_of_credentials LIKE "%september 8, 2005%"
|
Which Drawn has a Position smaller than 8, and a Played smaller than 14?
|
CREATE TABLE table_63795 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
|
SELECT MAX("Drawn") FROM table_63795 WHERE "Position" < 8 AND "Played" < 14
|
Which athlete represented the country of egypt?
|
CREATE TABLE table_name_35 (
athlete VARCHAR,
country VARCHAR
)
|
SELECT athlete FROM table_name_35 WHERE country LIKE "%egypt%"
|
Who was team 1 when team 2 was Young Africans?
|
CREATE TABLE table_14821 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
|
SELECT "Team 1" FROM table_14821 WHERE "Team 2" LIKE '%young africans%'
|
What channel had the prize of 100,000?
|
CREATE TABLE table_14523485_9 (
channel VARCHAR,
top_prize VARCHAR
)
|
SELECT channel FROM table_14523485_9 WHERE top_prize LIKE '%€100,000%'
|
What is the maximum money list rank for Matt Hansen?
|
CREATE TABLE table_24747844_2 (
money_list_rank INTEGER,
player VARCHAR
)
|
SELECT MAX(money_list_rank) FROM table_24747844_2 WHERE player LIKE "%matt hansen%"
|
How many laps were there when the start was 12?
|
CREATE TABLE table_66818 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
|
SELECT COUNT("Laps") FROM table_66818 WHERE "Start" LIKE '%12%'
|
What was the record when the team played at Oakland Seals?
|
CREATE TABLE table_name_36 (
record VARCHAR,
home VARCHAR
)
|
SELECT record FROM table_name_36 WHERE home LIKE "%oakland seals%"
|
What teams has 1-5 as the away?
|
CREATE TABLE table_name_96 (
teams VARCHAR,
away VARCHAR
)
|
SELECT teams FROM table_name_96 WHERE away LIKE "%1-5%"
|
Where did the Oakland Raiders play in week 12 of their 1976 season?
|
CREATE TABLE table_name_90 (
game_site VARCHAR,
week VARCHAR
)
|
SELECT game_site FROM table_name_90 WHERE week LIKE '%12%'
|
The frequency 89.3 belongs to what class?
|
CREATE TABLE table_name_79 (
class VARCHAR,
frequency_mhz VARCHAR
)
|
SELECT class FROM table_name_79 WHERE frequency_mhz LIKE '%89.3%'
|
Which type entered service in 1976/1997 and is located in Brazil?
|
CREATE TABLE table_38842 (
"Name" text,
"Type" text,
"Entered service" text,
"Water depth" text,
"Location" text
)
|
SELECT "Type" FROM table_38842 WHERE "Location" LIKE '%brazil%' AND "Entered service" LIKE '%1976/1997%'
|
What is independence community college's newest campus?
|
CREATE TABLE table_name_37 (
founded INTEGER,
institution VARCHAR
)
|
SELECT MIN(founded) FROM table_name_37 WHERE institution LIKE "%independence community college%"
|
The driver in class A with 125 laps is in what position?
|
CREATE TABLE table_name_92 (
position VARCHAR,
class VARCHAR,
laps VARCHAR
)
|
SELECT position FROM table_name_92 WHERE class LIKE "%a%" AND laps = 125
|
Where was the game played that had a score of 3-2 and a time of 15:00 cet?
|
CREATE TABLE table_69244 (
"Date" text,
"Time" text,
"Round" text,
"Opponent" text,
"Ground" text,
"Score" text
)
|
SELECT "Ground" FROM table_69244 WHERE "Score" LIKE '%3-2%' AND "Time" LIKE '%15:00 cet%'
|
Who was the director of the episode with series number 116?
|
CREATE TABLE table_28212888_2 (
directed_by VARCHAR,
no_in_series VARCHAR
)
|
SELECT directed_by FROM table_28212888_2 WHERE no_in_series LIKE '%116%'
|
What is the lowest Top-25 that has 3 Events and Wins greater than 0?
|
CREATE TABLE table_name_94 (
top_25 INTEGER,
events VARCHAR,
wins VARCHAR
)
|
SELECT MIN(top_25) FROM table_name_94 WHERE events LIKE '%3%' AND wins > '0'
|
Which Investing Dragon has requested 100,000 and is supported by Entrepreneur Kay Russell?
|
CREATE TABLE table_name_43 (
investing_dragon_s_ VARCHAR,
money_requested__£_ VARCHAR,
entrepreneur_s_ VARCHAR
)
|
SELECT investing_dragon_s_ FROM table_name_43 WHERE money_requested__£_ LIKE "%100,000%" AND entrepreneur_s_ LIKE "%kay russell%"
|
In 1987 who was the mens singles
|
CREATE TABLE table_15001681_1 (
mens_singles VARCHAR,
year VARCHAR
)
|
SELECT mens_singles FROM table_15001681_1 WHERE year LIKE '%1987%'
|
What is the Fleet Size when the EASA (EU) is no?
|
CREATE TABLE table_name_27 (
fleet_size VARCHAR,
easa__eu_ VARCHAR
)
|
SELECT fleet_size FROM table_name_27 WHERE easa__eu_ LIKE '%no%'
|
Name the most pos for west bromwich albion club
|
CREATE TABLE table_226619_12 (
pos INTEGER,
club VARCHAR
)
|
SELECT MAX(pos) FROM table_226619_12 WHERE club LIKE "%west bromwich albion%"
|
What is the title of the single with the peak position of 10 and from France?
|
CREATE TABLE table_name_21 (
title VARCHAR,
peak_position VARCHAR,
country VARCHAR
)
|
SELECT title FROM table_name_21 WHERE peak_position = '10' AND country LIKE '%france%'
|
Which Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman?
|
CREATE TABLE table_name_69 (
top_speed VARCHAR,
model_name VARCHAR
)
|
SELECT top_speed FROM table_name_69 WHERE model_name LIKE "%d14/4 supreme d14/4 sports & bushman%"
|
what is the tournament when the performance in 2012 is 3r and 2011 is qf?
|
CREATE TABLE table_15069 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
|
SELECT "Tournament" FROM table_15069 WHERE "2012" LIKE '%3r%' AND "2011" LIKE '%qf%'
|
Name the Round which has a Player of zack walz?
|
CREATE TABLE table_name_68 (
round VARCHAR,
player VARCHAR
)
|
SELECT round FROM table_name_68 WHERE player LIKE "%zack walz%"
|
What position has round less than 2?
|
CREATE TABLE table_54352 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"School/Club Team" text
)
|
SELECT "Position" FROM table_54352 WHERE "Round" < 2
|
What is XII Season, when Episode is 6?
|
CREATE TABLE table_name_57 (
xii_season VARCHAR,
episode VARCHAR
)
|
SELECT xii_season FROM table_name_57 WHERE episode LIKE "%6%"
|
What Elector was Elevated on December 18, 1182?
|
CREATE TABLE table_name_31 (
elector VARCHAR,
elevated VARCHAR
)
|
SELECT elector FROM table_name_31 WHERE elevated LIKE '%december 18, 1182%'
|
Where is the location of attendance for the Date of december 14?
|
CREATE TABLE table_name_1 (
location_attendance VARCHAR,
date VARCHAR
)
|
SELECT location_attendance FROM table_name_1 WHERE date LIKE "%december 14%"
|
Who was the train operator when the train departed at 11.02 in 1922?
|
CREATE TABLE table_18365784_3 (
operator VARCHAR,
departure VARCHAR
)
|
SELECT operator FROM table_18365784_3 WHERE departure LIKE "%11.02%"
|
What is the sum of Round, when Nationality is 'United States', and when Pick is '125'?
|
CREATE TABLE table_name_91 (
round INTEGER,
nationality VARCHAR,
pick VARCHAR
)
|
SELECT SUM(round) FROM table_name_91 WHERE nationality LIKE "%united states%" AND pick LIKE "%125%"
|
What was the attendance on september 8?
|
CREATE TABLE table_name_71 (
attendance INTEGER,
date VARCHAR
)
|
SELECT AVG(attendance) FROM table_name_71 WHERE date LIKE "%september 8%"
|
How many pixels would be found in a hardware colour of 8?
|
CREATE TABLE table_1701371_2 (
pixels VARCHAR,
hardware_colours VARCHAR
)
|
SELECT pixels FROM table_1701371_2 WHERE hardware_colours LIKE '%8%'
|
Who has the high assists when location attendance is 20,562?
|
CREATE TABLE table_name_20 (
high_assists VARCHAR,
location_attendance VARCHAR
)
|
SELECT high_assists FROM table_name_20 WHERE location_attendance LIKE "%20,562%"
|
If the record is 5-8, what is the team name?
|
CREATE TABLE table_23285805_4 (
team VARCHAR,
record VARCHAR
)
|
SELECT team FROM table_23285805_4 WHERE record LIKE "%5-8%"
|
Name the least first elected
|
CREATE TABLE table_2668352_11 (
first_elected INTEGER
)
|
SELECT MIN(first_elected) FROM table_2668352_11
|
of those in the top 15 positions , who earned the least number of points ?
|
CREATE TABLE table_204_535 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
|
SELECT "rider" FROM table_204_535 WHERE "pos" <= 15 ORDER BY "points" LIMIT 1
|
How much Distance has a County of faulkner, and a Total smaller than 1.5?
|
CREATE TABLE table_64574 (
"County" text,
"Location" text,
"Distance" real,
"Total" real,
"Notes" text
)
|
SELECT SUM("Distance") FROM table_64574 WHERE "County" LIKE '%faulkner%' AND "Total" < 1.5
|
How many races are in College Station, Texas and won by Johnny Rutherford?
|
CREATE TABLE table_25232 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
)
|
SELECT COUNT("Race Name") FROM table_25232 WHERE "Location" LIKE '%college station, texas%' AND "Winning Driver" LIKE '%johnny rutherford%'
|
Tell me the total number of attendance for week of 16
|
CREATE TABLE table_31701 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
|
SELECT COUNT("Attendance") FROM table_31701 WHERE "Week" = 16
|
In the match where footscray was the home team, how much did they score?
|
CREATE TABLE table_name_55 (
home_team VARCHAR
)
|
SELECT home_team AS score FROM table_name_55 WHERE home_team LIKE "%footscray%"
|
What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?
|
CREATE TABLE table_64902 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" real,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
)
|
SELECT MAX("League Goals") FROM table_64902 WHERE "Name" LIKE '%barry endean%' AND "FA Cup Apps" > 0
|
what is the season when the third is shawn rojeski?
|
CREATE TABLE table_name_96 (
season VARCHAR,
third VARCHAR
)
|
SELECT season FROM table_name_96 WHERE third LIKE "%shawn rojeski%"
|
What is the smallest 8-car sets if 4-car sets is 47?
|
CREATE TABLE table_2019 (
"Fiscal year" real,
"2-car sets" real,
"4-car sets" real,
"6-car sets" real,
"8-car sets" real,
"Total vehicles" real
)
|
SELECT MIN("8-car sets") FROM table_2019 WHERE "4-car sets" = 47
|
Name the series for game 5
|
CREATE TABLE table_name_12 (
series VARCHAR,
game VARCHAR
)
|
SELECT series FROM table_name_12 WHERE game LIKE "%game 5%"
|
What safari has 2012 q4 as the period?
|
CREATE TABLE table_79299 (
"Period" text,
"Internet Explorer" text,
"Firefox" text,
"Chrome" text,
"Safari" text,
"Opera" text,
"Other" text
)
|
SELECT "Safari" FROM table_79299 WHERE "Period" LIKE '%2012 q4%'
|
Name the league for 2003
|
CREATE TABLE table_2511876_1 (
league VARCHAR,
year VARCHAR
)
|
SELECT league FROM table_2511876_1 WHERE year LIKE '%2003%'
|
What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?
|
CREATE TABLE table_name_19 (
Id VARCHAR
)
|
SELECT MAX(2003) FROM table_name_19 WHERE 2011 < 107 AND 1995 < 17
|
which town would come first in alphabetical order , of all the towns in the faroe islands ?
|
CREATE TABLE table_203_568 (
id number,
"town/village" text,
"population" number,
"postal code" text,
"municipality" text,
"island" text,
"location" text
)
|
SELECT "town/village" FROM table_203_568 ORDER BY "town/village" LIMIT 1
|
What is the highest number of viewers for a rating greater than 9.4?
|
CREATE TABLE table_name_47 (
viewers__m_ INTEGER,
rating INTEGER
)
|
SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4
|
What is Prime Mover of Model FM CFA-16-4?
|
CREATE TABLE table_57300 (
"Model" text,
"Build year" text,
"Total produced" real,
"Wheel arrangement" text,
"Prime mover" text,
"Power output" text
)
|
SELECT "Prime mover" FROM table_57300 WHERE "Model" LIKE '%fm cfa-16-4%'
|
Who wrote the episode that was directed by dan lerner?
|
CREATE TABLE table_15749 (
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" real
)
|
SELECT "Written by" FROM table_15749 WHERE "Directed by" LIKE '%dan lerner%'
|
Name the average rank for west germany when gold is more than 1
|
CREATE TABLE table_name_15 (
rank INTEGER,
nation VARCHAR,
gold VARCHAR
)
|
SELECT AVG(rank) FROM table_name_15 WHERE nation LIKE "%west germany%" AND CAST(gold AS INTEGER) > 1
|
Who is the opponent with a time of 1:16?
|
CREATE TABLE table_name_58 (
opponent VARCHAR,
time VARCHAR
)
|
SELECT opponent FROM table_name_58 WHERE time LIKE "%1:16%"
|
What was the score on March 5 at Vancouver?
|
CREATE TABLE table_name_42 (
score VARCHAR,
date VARCHAR
)
|
SELECT score FROM table_name_42 WHERE date LIKE "%march 5%"
|
Who is the outgoing manager when the team is simurq pfc?
|
CREATE TABLE table_27057070_3 (
outgoing_manager VARCHAR,
team VARCHAR
)
|
SELECT outgoing_manager FROM table_27057070_3 WHERE team LIKE "%simurq pfc%"
|
Which Outcome has a Score of 6 2, 6 2?
|
CREATE TABLE table_name_20 (
outcome VARCHAR,
score VARCHAR
)
|
SELECT outcome FROM table_name_20 WHERE score LIKE "%6–2, 6–2%"
|
What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6?
|
CREATE TABLE table_name_58 (
games INTEGER,
lost VARCHAR,
points VARCHAR,
drawn VARCHAR
)
|
SELECT MAX(games) FROM table_name_58 WHERE points LIKE '%3%' AND drawn LIKE '%1%' AND lost LIKE '%5%'
|
in riyadh, saudi arabia, what is the score?
|
CREATE TABLE table_name_12 (
score VARCHAR,
venue VARCHAR
)
|
SELECT score FROM table_name_12 WHERE venue LIKE "%riyadh, saudi arabia%"
|
Which Lost has a Position of 4, and a Drawn smaller than 3?
|
CREATE TABLE table_name_4 (
lost INTEGER,
position VARCHAR,
drawn VARCHAR
)
|
SELECT AVG(lost) FROM table_name_4 WHERE position LIKE '%4%' AND drawn < '3'
|
What date did the team play home in Toronto?
|
CREATE TABLE table_name_64 (
date VARCHAR,
home VARCHAR
)
|
SELECT date FROM table_name_64 WHERE home LIKE "%toronto%"
|
What is the Hanyu Pinyin with an area of 400?
|
CREATE TABLE table_name_94 (
hanyu_pinyin VARCHAR,
area__km²_ VARCHAR
)
|
SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ LIKE "%400%"
|
Which Length has a Country of soviet union, and a Year larger than 1975?
|
CREATE TABLE table_name_52 (
length VARCHAR,
country VARCHAR,
year VARCHAR
)
|
SELECT length FROM table_name_52 WHERE country LIKE "%soviet union%" AND year > '1975'
|
Name the total number directed by for uk viewers being 6.86
|
CREATE TABLE table_18012738_1 (
directed_by VARCHAR,
uk_viewers__million_ VARCHAR
)
|
SELECT COUNT(directed_by) FROM table_18012738_1 WHERE uk_viewers__million_ LIKE "%6.86%"
|
What was the result of week 2?
|
CREATE TABLE table_name_93 (
result VARCHAR,
week VARCHAR
)
|
SELECT result FROM table_name_93 WHERE week LIKE "%week 2%"
|
What type of structure is there at the American Tower Christmas?
|
CREATE TABLE table_name_17 (
structure_type VARCHAR,
name VARCHAR
)
|
SELECT structure_type FROM table_name_17 WHERE name LIKE "%american tower christmas%"
|
What player is from the California Golden Seals?
|
CREATE TABLE table_2084 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
|
SELECT "Player" FROM table_2084 WHERE "NHL team" LIKE '%california golden seals%'
|
What is the Nationality for alexandre jacques?
|
CREATE TABLE table_name_2 (
nationality VARCHAR,
player VARCHAR
)
|
SELECT nationality FROM table_name_2 WHERE player LIKE "%alexandre jacques%"
|
What is the latest season where he had 1 podium?
|
CREATE TABLE table_25539502_1 (
season INTEGER,
podiums VARCHAR
)
|
SELECT MAX(season) FROM table_25539502_1 WHERE podiums LIKE '%1%'
|
List all years in Orlando where Jeryl Sasser was a player.
|
CREATE TABLE table_15621965_17 (
years_in_orlando VARCHAR,
player VARCHAR
)
|
SELECT years_in_orlando FROM table_15621965_17 WHERE player LIKE "%jeryl sasser%"
|
What is the average number of points for places over 7 and having a draw order of 4?
|
CREATE TABLE table_name_49 (
points INTEGER,
place VARCHAR,
draw VARCHAR
)
|
SELECT AVG(points) FROM table_name_49 WHERE CAST(place AS INTEGER) > 7 AND CAST(draw AS INTEGER) = 4
|
What event was in the 2008 Beijing games?
|
CREATE TABLE table_37430 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
|
SELECT "Event" FROM table_37430 WHERE "Games" LIKE '%2008 beijing%'
|
Name the number of class aa for bridgeport and 1999-2000
|
CREATE TABLE table_19418 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
|
SELECT COUNT("Class AA") FROM table_19418 WHERE "Class AAA" LIKE '%bridgeport%' AND "School Year" LIKE '%1999-2000%'
|
How many judges were there when the result is safe with a vote percentage of 10.7%?
|
CREATE TABLE table_28639 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
|
SELECT MIN("Judges") FROM table_28639 WHERE "Result" LIKE '%safe%' AND "Vote percentage" LIKE '%10.7%'
|
What is the type of the king title?
|
CREATE TABLE table_49362 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
|
SELECT "Type" FROM table_49362 WHERE "Title" LIKE '%king%'
|
What college does Dennis Scott attend?
|
CREATE TABLE table_name_26 (
college VARCHAR,
player VARCHAR
)
|
SELECT college FROM table_name_26 WHERE player LIKE "%dennis scott%"
|
What's spain's highest total?
|
CREATE TABLE table_name_34 (
total INTEGER,
country VARCHAR
)
|
SELECT MAX(total) FROM table_name_34 WHERE country LIKE "%spain%"
|
Name the type for mcminnville
|
CREATE TABLE table_2076533_1 (
type VARCHAR,
main_location VARCHAR
)
|
SELECT type FROM table_2076533_1 WHERE main_location LIKE '%mcminnville%'
|
Where was the UFC 154 match held?
|
CREATE TABLE table_59268 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
|
SELECT "Location" FROM table_59268 WHERE "Event" LIKE '%ufc 154%'
|
Which week's game was attended by 65,272 people?
|
CREATE TABLE table_name_18 (
week VARCHAR,
attendance VARCHAR
)
|
SELECT week FROM table_name_18 WHERE attendance LIKE "%65,272%"
|
What Date has a Circuit of cremona?
|
CREATE TABLE table_name_36 (
date VARCHAR,
circuit VARCHAR
)
|
SELECT date FROM table_name_36 WHERE circuit LIKE "%cremona%"
|
Name the most october for game less than 1
|
CREATE TABLE table_name_19 (
october INTEGER,
game INTEGER
)
|
SELECT MAX(october) FROM table_name_19 WHERE game < 1
|
What is the Set 1 when the date is 08 jul, and a Set 2 of 25 21?
|
CREATE TABLE table_6786 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Total" text,
"Report" text
)
|
SELECT "Set 1" FROM table_6786 WHERE "Date" LIKE '%08 jul%' AND "Set 2" LIKE '%25–21%'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.