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】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    How many samples of "wall" are there in image no.2353079? samples of "wall" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079

    【Evidence】
    samples of "wall" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079

    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 T1.OBJ_CLASS = 'wall' THEN 1 ELSE 0 END) FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 2353079
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    State the object class of sample no.10 of image no.2320341. object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341

    【Evidence】
    object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341

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

SQL: SELECT T1.OBJ_CLASS FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 2320341 AND T2.OBJ_SAMPLE_ID = 10
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    How many times is the number of images containing "broccoli" than "tomato"? images refers to IMG_ID; "broccoli" refers to OBJ_CLASS = 'broccoli'; "tomato" refers to OBJ_CLASS = 'tomato' ; How many times = divide(count(OBJ_SAMPLE_ID) when OBJ_CLASS = 'broccoli', count(OBJ_SAMPLE_ID) when OBJ_CLASS = 'tomato')

    【Evidence】
    images refers to IMG_ID; "broccoli" refers to OBJ_CLASS = 'broccoli'; "tomato" refers to OBJ_CLASS = 'tomato' ; How many times = divide(count(OBJ_SAMPLE_ID) when OBJ_CLASS = 'broccoli', count(OBJ_SAMPLE_ID) when OBJ_CLASS = 'tomato')

    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 T1.OBJ_CLASS = 'broccoli' THEN T2.OBJ_SAMPLE_ID ELSE NULL END) AS REAL) / COUNT(CASE WHEN T1.OBJ_CLASS = 'tomato' THEN T2.OBJ_SAMPLE_ID ELSE NULL END) times FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    How many images have at least 25 attributes? images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25

    【Evidence】
    images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25

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

SQL: SELECT COUNT(*) FROM ( SELECT IMG_ID FROM IMG_OBJ_att GROUP BY IMG_ID HAVING COUNT(ATT_CLASS_ID) > 25 ) T1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    List all the ids of the images that have a self-relation relationship. ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID

    【Evidence】
    ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID

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

SQL: SELECT DISTINCT IMG_ID FROM IMG_REL WHERE OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    How many objects are there in the attribute class id with the highest number of objects? objects refers to OBJ_SAMPLE_ID; attribute class id with the highest number of objects refers to max(COUNT(ATT_CLASS_ID))

    【Evidence】
    objects refers to OBJ_SAMPLE_ID; attribute class id with the highest number of objects refers to max(COUNT(ATT_CLASS_ID))

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

SQL: SELECT COUNT(ATT_CLASS_ID) FROM IMG_OBJ_att GROUP BY IMG_ID ORDER BY COUNT(ATT_CLASS_ID) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    What are the id of all the objects belonging to the transportation class? id of all the objects belonging to the transportation class refers to OBJ_CLASS_ID and OBJ_CLASS IN ('bus', 'train', 'aeroplane', 'car', 'etc.')

    【Evidence】
    id of all the objects belonging to the transportation class refers to OBJ_CLASS_ID and OBJ_CLASS IN ('bus', 'train', 'aeroplane', 'car', 'etc.')

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

SQL: SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS IN ('bus', 'train', 'aeroplane', 'car', 'etc')
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    What are the corresponding classes for the "very large bike" attribute? attribute refers to ATT_CLASS

    【Evidence】
    attribute refers to ATT_CLASS

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

SQL: SELECT ATT_CLASS_ID FROM ATT_CLASSES WHERE ATT_CLASS = 'very large'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    What is the unique id number identifying the onion object class? unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'

    【Evidence】
    unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'

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

SQL: SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS = 'onion'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 image_and_language
【Schema】
# Table: ATT_CLASSES
[
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(ATT_CLASS:TEXT, Examples: [building s, indoors, cluttered])
]
# Table: IMG_OBJ_ATT
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ATT_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [21, 22, 23])
]
# Table: IMG_OBJ
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(OBJ_CLASS_ID:INTEGER, Examples: [298, 246, 293]),
(X:INTEGER, Examples: [0, 78, 1]),
(Y:INTEGER, Examples: [0, 308, 283]),
(W:INTEGER, Examples: [799, 722, 222]),
(H:INTEGER, Examples: [557, 290, 538])
]
# Table: OBJ_CLASSES
[
(OBJ_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ_CLASS:TEXT, Examples: [awning, goggles, dot])
]
# Table: IMG_REL
[
(IMG_ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(OBJ1_SAMPLE_ID:INTEGER, Primary Key, Examples: [13, 12, 4]),
(OBJ2_SAMPLE_ID:INTEGER, Primary Key, Examples: [1, 34, 5])
]
# Table: PRED_CLASSES
[
(PRED_CLASS_ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(PRED_CLASS:TEXT, Examples: [playing on, looking a, to left of])
]
【Foreign keys】
IMG_OBJ_ATT.ATT_CLASS_ID=ATT_CLASSES.ATT_CLASS_ID
IMG_OBJ_ATT.IMG_ID=IMG_OBJ.IMG_ID
IMG_OBJ_ATT.OBJ_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_OBJ.OBJ_CLASS_ID=OBJ_CLASSES.OBJ_CLASS_ID
IMG_REL.PRED_CLASS_ID=PRED_CLASSES.PRED_CLASS_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ1_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID
IMG_REL.IMG_ID=IMG_OBJ.IMG_ID
IMG_REL.OBJ2_SAMPLE_ID=IMG_OBJ.OBJ_SAMPLE_ID

    【Question】
    List all the corresponding classes for attributes of image id 8. classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8

    【Evidence】
    classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8

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

SQL: SELECT T2.ATT_CLASS FROM IMG_OBJ_att AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 8