QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    How many trains with fully loaded head cars are running east? fully loaded refers to load_num = 3; head cars refers to position = 1

    【Evidence】
    fully loaded refers to load_num = 3; head cars refers to position = 1

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T1.load_num = 3
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    How many cars running east have double-sided tail cars? east is an direction; double-sided refers to sides = 'double'; tail refers to carsposition = trailPosi

    【Evidence】
    east is an direction; double-sided refers to sides = 'double'; tail refers to carsposition = trailPosi

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(T1.id) FROM trains AS T1 INNER JOIN cars AS T2 ON T1.id = T2.train_id INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars GROUP BY train_id ) AS T3 ON T1.id = T3.train_id WHERE T1.direction = 'east' AND T2.position = T3.trailPosi AND T2.sides = 'double'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    List all the directions of the trains that have empty cars. empty cars refers to load_num = 0

    【Evidence】
    empty cars refers to load_num = 0

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.load_num = 0
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    What is the direction of the train with a diamond-shaped load in its 2nd car? 2nd car refers to position = 2

    【Evidence】
    2nd car refers to position = 2

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 2 AND T1.shape = 'diamond'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    Among the trains running west, how many trains have three-wheeled, jagged roof cars? west is an direction; three-wheeled refers to wheels = 3; jagged roof refers to roof = 'jagged'

    【Evidence】
    west is an direction; three-wheeled refers to wheels = 3; jagged roof refers to roof = 'jagged'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT SUM(CASE WHEN T2.direction = 'west' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.wheels = 3 AND T1.roof = 'jagged'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    Provide the directions for all the trains that have 2 or less cars. 2 or less cars refers to trailPosi < = 2

    【Evidence】
    2 or less cars refers to trailPosi < = 2

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T2.trailPosi <= 2
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    What is the percentage of all the trains with at least 4 cars? List the directions of the said trains. at least 4 cars refers to trailPosi > = 4; calculation = MULTIPLY(DIVIDE(count(trailPosi > = 4 then id), count(id)), 100)

    【Evidence】
    at least 4 cars refers to trailPosi > = 4; calculation = MULTIPLY(DIVIDE(count(trailPosi > = 4 then id), count(id)), 100)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST(COUNT(CASE WHEN T2.trailPosi >= 4 THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id UNION ALL SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars t GROUP BY train_id ) AS T2 ON T1.id = T2.train_id AND T2.trailPosi >= 4
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 trains
【Schema】
# Table: trains
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(direction:TEXT, Examples: [east, west])
]
# Table: cars
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(train_id:INTEGER, Examples: [1, 2, 3]),
(position:INTEGER, Examples: [1, 2, 3]),
(shape:TEXT, Examples: [rectangle, bucket, u_shaped]),
(len:TEXT, Examples: [short, long]),
(sides:TEXT, Examples: [not_double, double]),
(roof:TEXT, Examples: [none, peaked, flat]),
(wheels:INTEGER, Examples: [2, 3]),
(load_shape:TEXT, Examples: [circle, hexagon, triangle]),
(load_num:INTEGER, Examples: [1, 3, 2])
]
【Foreign keys】
cars.train_id=trains.id

    【Question】
    List all the load shapes of all head cars of each train and identify which load shape has the highest number. Calculate the percentage of the trains with the said head car that are running eas which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)

    【Evidence】
    which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T3.load_shape FROM ( SELECT load_shape, train_id FROM cars WHERE position = 1 ORDER BY train_id DESC ) AS T3 UNION ALL SELECT T4.load_shape FROM ( SELECT load_shape, train_id FROM cars WHERE position = 1 ORDER BY train_id DESC LIMIT 1 ) AS T4 UNION ALL SELECT (CAST(COUNT(DISTINCT CASE WHEN T2.direction = 'east' THEN T2.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.id)) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T1.load_shape = ( SELECT T4.load_shape FROM ( SELECT load_shape, train_id FROM cars AS T WHERE position = 1 ORDER BY train_id DESC LIMIT 1 ) AS T4 )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 movie
【Schema】
# Table: actor
[
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [John Travolta, Kirstie Alley, Olympia Dukakis]),
(Date of Birth:DATE, Examples: [1954-02-18]),
(Birth City:TEXT, Examples: [Englewood, Wichita, Lowell]),
(Birth Country:TEXT, Examples: [USA, West Germany, UK]),
(Height (Inches):INTEGER, Examples: [74, 67, 63]),
(Biography:TEXT),
(Gender:TEXT, Examples: [Male, Female]),
(Ethnicity:TEXT, Examples: [White, African American, Lebanese]),
(NetWorth:TEXT, Examples: [$250,000,000.00, $40,000,000.00, $6,000,000.00])
]
# Table: characters
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 4]),
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Character Name:TEXT, Examples: [James, Mollie, Rosie]),
(creditOrder:INTEGER, Examples: [1, 2, 3]),
(pay:TEXT, Examples: [$5,000,000.00, $60,000,000.00, $29,000,000.00]),
(screentime:TEXT, Examples: [0:32:30, 0:32:15, 0:29:00])
]
# Table: movie
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Look Who's Talking, Driving Miss Daisy, Turner & Hooch]),
(MPAA Rating:TEXT, Examples: [PG-13, PG, R]),
(Budget:INTEGER, Examples: [7500000, 13000000, 14000000]),
(Gross:INTEGER, Examples: [296000000, 145793296, 71079915]),
(Release Date:TEXT, Examples: [1989-10-12, 1989-12-13, 1989-07-28]),
(Genre:TEXT, Examples: [Romance, Comedy, Crime]),
(Runtime:INTEGER, Examples: [93, 99, 100]),
(Rating:REAL, Examples: [5.9, 7.4, 7.2]),
(Rating Count:INTEGER, Examples: [73638, 91075, 91415]),
(Summary:TEXT)
]
【Foreign keys】
characters.ActorID=actor.ActorID
characters.MovieID=movie.MovieID

    【Question】
    Please list the names of the characters in the movie Look Who's Talking. movie Look Who's Talking refers to title = 'Look Who's Talking'

    【Evidence】
    movie Look Who's Talking refers to title = 'Look Who's Talking'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'Look Who''s Talking'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 movie
【Schema】
# Table: actor
[
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [John Travolta, Kirstie Alley, Olympia Dukakis]),
(Date of Birth:DATE, Examples: [1954-02-18]),
(Birth City:TEXT, Examples: [Englewood, Wichita, Lowell]),
(Birth Country:TEXT, Examples: [USA, West Germany, UK]),
(Height (Inches):INTEGER, Examples: [74, 67, 63]),
(Biography:TEXT),
(Gender:TEXT, Examples: [Male, Female]),
(Ethnicity:TEXT, Examples: [White, African American, Lebanese]),
(NetWorth:TEXT, Examples: [$250,000,000.00, $40,000,000.00, $6,000,000.00])
]
# Table: characters
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 4]),
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Character Name:TEXT, Examples: [James, Mollie, Rosie]),
(creditOrder:INTEGER, Examples: [1, 2, 3]),
(pay:TEXT, Examples: [$5,000,000.00, $60,000,000.00, $29,000,000.00]),
(screentime:TEXT, Examples: [0:32:30, 0:32:15, 0:29:00])
]
# Table: movie
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Look Who's Talking, Driving Miss Daisy, Turner & Hooch]),
(MPAA Rating:TEXT, Examples: [PG-13, PG, R]),
(Budget:INTEGER, Examples: [7500000, 13000000, 14000000]),
(Gross:INTEGER, Examples: [296000000, 145793296, 71079915]),
(Release Date:TEXT, Examples: [1989-10-12, 1989-12-13, 1989-07-28]),
(Genre:TEXT, Examples: [Romance, Comedy, Crime]),
(Runtime:INTEGER, Examples: [93, 99, 100]),
(Rating:REAL, Examples: [5.9, 7.4, 7.2]),
(Rating Count:INTEGER, Examples: [73638, 91075, 91415]),
(Summary:TEXT)
]
【Foreign keys】
characters.ActorID=actor.ActorID
characters.MovieID=movie.MovieID

    【Question】
    Which character has the longest screen time in the movie Batman? longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'

    【Evidence】
    longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'Batman' ORDER BY T2.screentime DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 movie
【Schema】
# Table: actor
[
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [John Travolta, Kirstie Alley, Olympia Dukakis]),
(Date of Birth:DATE, Examples: [1954-02-18]),
(Birth City:TEXT, Examples: [Englewood, Wichita, Lowell]),
(Birth Country:TEXT, Examples: [USA, West Germany, UK]),
(Height (Inches):INTEGER, Examples: [74, 67, 63]),
(Biography:TEXT),
(Gender:TEXT, Examples: [Male, Female]),
(Ethnicity:TEXT, Examples: [White, African American, Lebanese]),
(NetWorth:TEXT, Examples: [$250,000,000.00, $40,000,000.00, $6,000,000.00])
]
# Table: characters
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 4]),
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Character Name:TEXT, Examples: [James, Mollie, Rosie]),
(creditOrder:INTEGER, Examples: [1, 2, 3]),
(pay:TEXT, Examples: [$5,000,000.00, $60,000,000.00, $29,000,000.00]),
(screentime:TEXT, Examples: [0:32:30, 0:32:15, 0:29:00])
]
# Table: movie
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Look Who's Talking, Driving Miss Daisy, Turner & Hooch]),
(MPAA Rating:TEXT, Examples: [PG-13, PG, R]),
(Budget:INTEGER, Examples: [7500000, 13000000, 14000000]),
(Gross:INTEGER, Examples: [296000000, 145793296, 71079915]),
(Release Date:TEXT, Examples: [1989-10-12, 1989-12-13, 1989-07-28]),
(Genre:TEXT, Examples: [Romance, Comedy, Crime]),
(Runtime:INTEGER, Examples: [93, 99, 100]),
(Rating:REAL, Examples: [5.9, 7.4, 7.2]),
(Rating Count:INTEGER, Examples: [73638, 91075, 91415]),
(Summary:TEXT)
]
【Foreign keys】
characters.ActorID=actor.ActorID
characters.MovieID=movie.MovieID

    【Question】
    Which actor played the role of Joker in the movie Batman? role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'

    【Evidence】
    role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Batman' AND T2.`Character Name` = 'Joker'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 movie
【Schema】
# Table: actor
[
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [John Travolta, Kirstie Alley, Olympia Dukakis]),
(Date of Birth:DATE, Examples: [1954-02-18]),
(Birth City:TEXT, Examples: [Englewood, Wichita, Lowell]),
(Birth Country:TEXT, Examples: [USA, West Germany, UK]),
(Height (Inches):INTEGER, Examples: [74, 67, 63]),
(Biography:TEXT),
(Gender:TEXT, Examples: [Male, Female]),
(Ethnicity:TEXT, Examples: [White, African American, Lebanese]),
(NetWorth:TEXT, Examples: [$250,000,000.00, $40,000,000.00, $6,000,000.00])
]
# Table: characters
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 4]),
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Character Name:TEXT, Examples: [James, Mollie, Rosie]),
(creditOrder:INTEGER, Examples: [1, 2, 3]),
(pay:TEXT, Examples: [$5,000,000.00, $60,000,000.00, $29,000,000.00]),
(screentime:TEXT, Examples: [0:32:30, 0:32:15, 0:29:00])
]
# Table: movie
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Look Who's Talking, Driving Miss Daisy, Turner & Hooch]),
(MPAA Rating:TEXT, Examples: [PG-13, PG, R]),
(Budget:INTEGER, Examples: [7500000, 13000000, 14000000]),
(Gross:INTEGER, Examples: [296000000, 145793296, 71079915]),
(Release Date:TEXT, Examples: [1989-10-12, 1989-12-13, 1989-07-28]),
(Genre:TEXT, Examples: [Romance, Comedy, Crime]),
(Runtime:INTEGER, Examples: [93, 99, 100]),
(Rating:REAL, Examples: [5.9, 7.4, 7.2]),
(Rating Count:INTEGER, Examples: [73638, 91075, 91415]),
(Summary:TEXT)
]
【Foreign keys】
characters.ActorID=actor.ActorID
characters.MovieID=movie.MovieID

    【Question】
    Please list the names of the actors who played a role in the movie Batman. movie Batman refers to title = 'Batman'

    【Evidence】
    movie Batman refers to title = 'Batman'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Batman'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 movie
【Schema】
# Table: actor
[
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [John Travolta, Kirstie Alley, Olympia Dukakis]),
(Date of Birth:DATE, Examples: [1954-02-18]),
(Birth City:TEXT, Examples: [Englewood, Wichita, Lowell]),
(Birth Country:TEXT, Examples: [USA, West Germany, UK]),
(Height (Inches):INTEGER, Examples: [74, 67, 63]),
(Biography:TEXT),
(Gender:TEXT, Examples: [Male, Female]),
(Ethnicity:TEXT, Examples: [White, African American, Lebanese]),
(NetWorth:TEXT, Examples: [$250,000,000.00, $40,000,000.00, $6,000,000.00])
]
# Table: characters
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 4]),
(ActorID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Character Name:TEXT, Examples: [James, Mollie, Rosie]),
(creditOrder:INTEGER, Examples: [1, 2, 3]),
(pay:TEXT, Examples: [$5,000,000.00, $60,000,000.00, $29,000,000.00]),
(screentime:TEXT, Examples: [0:32:30, 0:32:15, 0:29:00])
]
# Table: movie
[
(MovieID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Look Who's Talking, Driving Miss Daisy, Turner & Hooch]),
(MPAA Rating:TEXT, Examples: [PG-13, PG, R]),
(Budget:INTEGER, Examples: [7500000, 13000000, 14000000]),
(Gross:INTEGER, Examples: [296000000, 145793296, 71079915]),
(Release Date:TEXT, Examples: [1989-10-12, 1989-12-13, 1989-07-28]),
(Genre:TEXT, Examples: [Romance, Comedy, Crime]),
(Runtime:INTEGER, Examples: [93, 99, 100]),
(Rating:REAL, Examples: [5.9, 7.4, 7.2]),
(Rating Count:INTEGER, Examples: [73638, 91075, 91415]),
(Summary:TEXT)
]
【Foreign keys】
characters.ActorID=actor.ActorID
characters.MovieID=movie.MovieID

    【Question】
    Which movie is the character Dr. Archibald 'Moonlight' Graham from? movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'

    【Evidence】
    movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.`Character Name` = 'Dr. Archibald ''Moonlight'' Graham'