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】
    What colour is the van that can be spotted in image no. 1? colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1

    【Evidence】
    colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1

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

SQL: SELECT T4.ATT_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID INNER JOIN IMG_OBJ_ATT AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN ATT_CLASSES AS T4 ON T3.ATT_CLASS_ID = T4.ATT_CLASS_ID WHERE T2.OBJ_CLASS = 'van' AND T1.IMG_ID = 1 GROUP BY T4.ATT_CLASS
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】
    Describe the objects, their attributes, and the relationships that comprise the scene on image no. 1 within the bounding box, represented as (388, 369, 48, 128). objects refers to OBJ_CLASS; attributes refers to ATT_CLASS; relationships refers to PRED_CLASS; image no. 1 refers to IMG_ID = 1; bounding box, represented as (388, 369, 48, 128) refers to X = 388 and Y = 369 and W = 48 and H = 128

    【Evidence】
    objects refers to OBJ_CLASS; attributes refers to ATT_CLASS; relationships refers to PRED_CLASS; image no. 1 refers to IMG_ID = 1; bounding box, represented as (388, 369, 48, 128) refers to X = 388 and Y = 369 and W = 48 and H = 128

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

SQL: SELECT DISTINCT T2.OBJ_CLASS, T4.ATT_CLASS, T6.PRED_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID INNER JOIN IMG_OBJ_ATT AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN ATT_CLASSES AS T4 ON T3.ATT_CLASS_ID = T4.ATT_CLASS_ID INNER JOIN IMG_REL AS T5 ON T1.IMG_ID = T5.IMG_ID INNER JOIN PRED_CLASSES AS T6 ON T5.PRED_CLASS_ID = T6.PRED_CLASS_ID WHERE T1.IMG_ID = 1 AND T1.X = 388 AND T1.Y = 369 AND T1.W = 48 AND T1.H = 128
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 relationship between object sample no. 25 and object sample no. 2 on image no. 1? relationship refers to PRED_CLASS; object sample no. 25 and object sample no. 2 refers to OBJ1_SAMPLE_ID = 25 and OBJ2_SAMPLE_ID = 2; image no. 1 refers to IMG_ID = 1

    【Evidence】
    relationship refers to PRED_CLASS; object sample no. 25 and object sample no. 2 refers to OBJ1_SAMPLE_ID = 25 and OBJ2_SAMPLE_ID = 2; image no. 1 refers to IMG_ID = 1

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

SQL: SELECT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 1 AND T1.OBJ1_SAMPLE_ID = 25 AND T1.OBJ2_SAMPLE_ID = 2
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 attributes are related to the object sample no. 7 on image no. 4? How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7

    【Evidence】
    How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7

    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 WHERE IMG_ID = 4 AND OBJ_SAMPLE_ID = 7
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 object elements can be detected on image no. 31? How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31

    【Evidence】
    How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31

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

SQL: SELECT COUNT(OBJ_CLASS_ID) FROM IMG_OBJ WHERE IMG_ID = 31
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】
    On image no. 20, identify the attribute ID that is composed of the highest number of objects. image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; highest number of objects refers to max(count(ATT_CLASS_ID))

    【Evidence】
    image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; 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 ATT_CLASS_ID FROM IMG_OBJ_ATT WHERE IMG_ID = 20 GROUP BY ATT_CLASS_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】
    Define the bounding box of the object sample no. 7 on image no. 42. bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7

    【Evidence】
    bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7

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

SQL: SELECT X, Y, W, H FROM IMG_OBJ WHERE IMG_ID = 42 AND OBJ_SAMPLE_ID = 7
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】
    On image no. 99 identify the percentage of objects that are described as white. image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage

    【Evidence】
    image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage

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

SQL: SELECT CAST(SUM(CASE WHEN T2.ATT_CLASS = 'white' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(OBJ_SAMPLE_ID) 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 = 99
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 attribute classes are there for image id 5? attribute classes refer to ATT_CLASS_ID; image id 5 refers to IMG_ID = 5;

    【Evidence】
    attribute classes refer to ATT_CLASS_ID; image id 5 refers to IMG_ID = 5;

    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 WHERE IMG_ID = 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】
    State the explanation about object class 10. explanation about object class 10 refers to OBJ_CLASS where OBJ_CLASS_ID = 10;

    【Evidence】
    explanation about object class 10 refers to OBJ_CLASS where OBJ_CLASS_ID = 10;

    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 FROM OBJ_CLASSES WHERE OBJ_CLASS_ID = 10