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】
    Which object has the highest attribute classes? object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));

    【Evidence】
    object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_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 OBJ_SAMPLE_ID FROM IMG_OBJ_ATT GROUP BY OBJ_SAMPLE_ID ORDER BY COUNT(OBJ_SAMPLE_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 is the ratio between the number of object samples in image 1 and the number of object samples in image 6? DIVIDE(SUM(OBJ_SAMPLE_ID where IMG_ID = 1), SUM(OBJ_SAMPLE_ID where IMG_ID = 6));

    【Evidence】
    DIVIDE(SUM(OBJ_SAMPLE_ID where IMG_ID = 1), SUM(OBJ_SAMPLE_ID where 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 CAST(SUM(CASE WHEN IMG_ID = 1 THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN IMG_ID = 6 THEN 1 ELSE 0 END) FROM IMG_OBJ
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】
    Calculate the average of object samples for the image. DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));

    【Evidence】
    DIVIDE(COUNT(OBJ_SAMPLE_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_SAMPLE_ID) AS REAL) / COUNT(DISTINCT IMG_ID) FROM IMG_OBJ
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 images that have objects with the attributes of 'wired'. IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';

    【Evidence】
    IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';

    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.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 = 'wired'
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 in image 10. object classes refer to OBJ_CLASS; image 10 refers to IMG_ID = 10;

    【Evidence】
    object classes refer to OBJ_CLASS; image 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 DISTINCT 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.IMG_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】
    List attributes for object class 'tip' In image 1314. attributes for object refer to ATT_CLASS; class 'tip' in image 1314 refers to OBJ_CLASS = 'tip' where IMG_ID = 1314;

    【Evidence】
    attributes for object refer to ATT_CLASS; class 'tip' in image 1314 refers to OBJ_CLASS = 'tip' where IMG_ID = 1314;

    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 INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T3.IMG_ID = 1314 AND T4.OBJ_CLASS = 'tip'
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 prediction class between object class 'chain' and 'label' in image 2360078? prediction class refers to PRED_CLASS; object class 'chain' refers to OBJ_CLASS = 'chain'; object class 'label' refers to OBJ_CLASS = 'label'; image 2360078 refers to IMG_ID = 2360078;

    【Evidence】
    prediction class refers to PRED_CLASS; object class 'chain' refers to OBJ_CLASS = 'chain'; object class 'label' refers to OBJ_CLASS = 'label'; image 2360078 refers to IMG_ID = 2360078;

    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.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T2.PRED_CLASS_ID = T1.PRED_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T1.IMG_ID = T3.IMG_ID AND T1.OBJ1_SAMPLE_ID = T3.OBJ_SAMPLE_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T1.IMG_ID = 2360078 AND T1.OBJ1_SAMPLE_ID = 15 OR T1.OBJ2_SAMPLE_ID = 18
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 objects with the attributes of polka dot? attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;

    【Evidence】
    attributes of polka dot refer to ATT_CLASS = 'polka dot'; 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.OBJ_SAMPLE_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 = 'polka dot'
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 attributes of the widest object in image 400? attributes refer to ATT_CLASS; the widest relates to the width of the bounding
box of the object which refers to MAX(W); image 400 refers to IMG_ID = 400;

    【Evidence】
    attributes refer to ATT_CLASS; the widest relates to the width of the bounding
box of the object which refers to MAX(W); image 400 refers to IMG_ID = 400;

    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 T2.IMG_ID = 400 ORDER BY T3.W 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】
    State the name of the object class that has in most images. object class that has in most images refers to OBJ_CLASS where MAX(COUNT(OBJ_CLASS_ID));

    【Evidence】
    object class that has in most images refers to OBJ_CLASS where MAX(COUNT(OBJ_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 OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID GROUP BY T2.OBJ_CLASS ORDER BY COUNT(T1.OBJ_CLASS_ID) DESC LIMIT 1