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 is the object class of the image with a bounding box of 0, 0, 135, 212? object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212

    【Evidence】
    object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212

    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.X = 0 AND T2.Y = 0 AND T2.W = 135 AND T2.H = 212
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 dimensions of the bounding box that contains the keyboard that was spotted in image no. 3. dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3

    【Evidence】
    dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3

    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 T1.IMG_ID = 3 AND 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】
    Identify the border's coordinates on the X and Y axes that enclose a folk in image no. 6. coordinates on the X and Y axes refers to X and Y; folk refers to OBJ_CLASS = 'folk'; image no. 6 refers to IMG_ID = 6

    【Evidence】
    coordinates on the X and Y axes refers to X and Y; folk refers to OBJ_CLASS = 'folk'; image no. 6 refers to IMG_ID = 6

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

SQL: SELECT T1.X, T1.Y FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 6 AND T2.OBJ_CLASS = 'folk'
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 onion's bounding box on image no. 285930. bounding box refers to (X, Y, W, H); onion refers to OBJ_CLASS = 'onion'; image no.285930 refers to IMG_ID = 285930

    【Evidence】
    bounding box refers to (X, Y, W, H); onion refers to OBJ_CLASS = 'onion'; image no.285930 refers to IMG_ID = 285930

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

SQL: SELECT T1.X, T1.Y, 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 T1.IMG_ID = 285930 AND T2.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】
    How many objects can you spot in image no. 72? What objects may be identified on the same image and within the bounding box represented as (341, 27, 42, 51)? How many objects refers to OBJ_CLASS_ID; image no. 72 refers to IMG_ID = 72; What objects refers to OBJ_CLASS; bounding box represented as (341, 27, 42, 51) refers to X = 341 and Y = 27 and W = 42 and H = 51

    【Evidence】
    How many objects refers to OBJ_CLASS_ID; image no. 72 refers to IMG_ID = 72; What objects refers to OBJ_CLASS; bounding box represented as (341, 27, 42, 51) refers to X = 341 and Y = 27 and W = 42 and H = 51

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

SQL: SELECT SUM(IIF(T1.IMG_ID = 1, 1, 0)), SUM(IIF(T1.X = 341 AND T1.Y = 27 AND T1.W = 42 AND T1.H = 51, 1, 0)) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES 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】
    On image no. 5, name the attributes that are composed of multiple objects. image no. 5 refers to IMG_ID = 5; name the attributes refers to ATT_CLASS; multiple objects refers to count(ATT_CLASS) > = 2

    【Evidence】
    image no. 5 refers to IMG_ID = 5; name the attributes refers to ATT_CLASS; multiple objects refers to count(ATT_CLASS) > = 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.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 = 5 GROUP BY T2.ATT_CLASS HAVING COUNT(T2.ATT_CLASS) > 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】
    What attributes are used to describe the wall on image no. 27. What attributes refers to ATT_CLASS; wall on image no. 27 refers to OBJ_CLASS = 'wall' and IMG_ID = 27

    【Evidence】
    What attributes refers to ATT_CLASS; wall on image no. 27 refers to OBJ_CLASS = 'wall' and IMG_ID = 27

    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 = 'wall' AND T1.IMG_ID = 27 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】
    Name the object element that is described as being scattered on image no. 10. Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10

    【Evidence】
    Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_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 T2.OBJ_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 T4.ATT_CLASS = 'scattered' AND T1.IMG_ID = 10 GROUP BY T2.OBJ_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】
    How many images contain 'bridge' as an object element? images refers to IMG_ID; 'bridge' as an object element refers to OBJ_CLASS = 'bridge'

    【Evidence】
    images refers to IMG_ID; 'bridge' as an object element refers to OBJ_CLASS = 'bridge'

    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.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 = 'bridge'
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 are there on average in each image? object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))

    【Evidence】
    object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(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 CAST(COUNT(OBJ_CLASS_ID) AS REAL) / COUNT(DISTINCT IMG_ID) FROM IMG_OBJ