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】
    List all the object classes of the images that have a (5,5) coordinate. object classes refer to OBJ_CLASS; (5,5) coordinates refer to X and Y coordinates of the bounding box where X = 5 and Y = 5;

    【Evidence】
    object classes refer to OBJ_CLASS; (5,5) coordinates refer to X and Y coordinates of the bounding box where X = 5 and Y = 5;

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

SQL: SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.X = 5 AND T1.Y = 5
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 "keyboard" as their object class? images refer to IMG_ID; "keyboard" as object class refers to OBJ_CLASS = 'keyboard';

    【Evidence】
    images refer to IMG_ID; "keyboard" as object class refers to OBJ_CLASS = 'keyboard';

    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.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'keyboard'
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 width and height of the bounding box of the object with "keyboard" as their object class and (5, 647) as their coordinate? The bounding box's W and H abbreviations stand for the object's width and height respectively; "keyboard" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;

    【Evidence】
    The bounding box's W and H abbreviations stand for the object's width and height respectively; "keyboard" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;

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

SQL: SELECT T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'keyboard' AND T1.X = 5 AND T1.Y = 647
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 ID of the images that have an attribute class of "horse". ID of all images refer to IMG_ID; attribute class of "horse" refers to ATT_CLASS = 'horse';

    【Evidence】
    ID of all images refer to IMG_ID; attribute class of "horse" refers to ATT_CLASS = 'horse';

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

SQL: SELECT T2.IMG_ID FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.ATT_CLASS = 'horse'
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】
    Provide the x-coordinate and y-coordinate of the image with an attribute class of ''horse" and an object class of "fur". attribute class of "horse" refers to ATT_CLASS = 'horse'; object class of "fur" refers to OBJ_CLASS = 'fur';

    【Evidence】
    attribute class of "horse" refers to ATT_CLASS = 'horse'; object class of "fur" refers to OBJ_CLASS = 'fur';

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

SQL: SELECT T3.X, T3.Y FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T1.ATT_CLASS = 'horse' AND T4.OBJ_CLASS = 'fur'
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 attribute classes of the image ID "15". attribute classes of the image ID "15" refer to ATT_CLASS where IMG_ID = 15;

    【Evidence】
    attribute classes of the image ID "15" refer to ATT_CLASS where IMG_ID = 15;

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

SQL: SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T2.IMG_ID = 15
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】
    For those objects that have multiple relations, how many images have a prediction class of "reading"? prediction class of "reading" refers to PRED_CLASS = 'reading'; if two objects (OBJ1_SAMPLE_ID,
OBJ2_SAMPLE_ID) has
multiple PRED_CLASS_ID, it
means these two objects
have multiple relations;

    【Evidence】
    prediction class of "reading" refers to PRED_CLASS = 'reading'; if two objects (OBJ1_SAMPLE_ID,
OBJ2_SAMPLE_ID) has
multiple PRED_CLASS_ID, it
means these two objects
have multiple relations;

    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.IMG_ID) FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.PRED_CLASS = 'reading'
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 "picture" as their attribute class? images have "picture" as their attribute class refer to IMG_ID where ATT_CLASS = 'picture';

    【Evidence】
    images have "picture" as their attribute class refer to IMG_ID where ATT_CLASS = 'picture';

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

SQL: SELECT COUNT(T2.IMG_ID) FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.ATT_CLASS = 'picture'
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 "picture" as their attribute class and "bear" as their object class? "picture" as attribute class refers to ATT_CLASS = 'picture'; "bear" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;

    【Evidence】
    "picture" as attribute class refers to ATT_CLASS = 'picture'; "bear" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_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(T2.IMG_ID) FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T1.ATT_CLASS = 'picture' AND T4.OBJ_CLASS = 'bear'
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 attribute classes of the images that have a (5,5) coordinate. attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;

    【Evidence】
    attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;

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

SQL: SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID WHERE T3.X = 5 AND T3.Y = 5