db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
image_and_language | select count(t.img_id) from ( select t2.img_id from obj_classes as t1 inner join img_obj as t2 on t1.obj_class_id = t2.obj_class_id where t1.obj_class = 'suit' group by t2.img_id ) t | Question: give the number of images containing the object sample of 'suit'. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS.... | give the number of images containing the object sample of 'suit'. |
image_and_language | select t1.pred_class from pred_classes as t1 inner join img_rel as t2 on t1.pred_class_id = t2.pred_class_id inner join img_obj as t3 on t2.obj1_sample_id = t3.obj_sample_id inner join obj_classes as t4 on t3.obj_class_id = t4.obj_class_id where (t4.obj_class = 'feathers' or t4.obj_class = 'onion') and t2.img_id = 2345... | Question: what is the relationship between 'feathers' and 'onion' in image no.2345528? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, ... | what is the relationship between 'feathers' and 'onion' in image no.2345528? |
image_and_language | 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 inner join img_obj as t3 on t1.img_id = t3.img_id inner join obj_classes as t4 on t3.obj_class_id = t4.obj_class_id where t4.obj_class = 'weeds' and t1.img_id = 2377988 | Question: tell the attribute of the weeds in image no.2377988. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> I... | tell the attribute of the weeds in image no.2377988. |
image_and_language | select t4.obj_class_id, t4.obj_class from img_obj_att as t1 inner join att_classes as t2 on t1.att_class_id = t2.att_class_id inner join img_obj as t3 on t1.img_id = t3.img_id inner join obj_classes as t4 on t3.obj_class_id = t4.obj_class_id where t2.att_class = 'blurry' and t1.img_id = 22377993 | Question: what is the object whose attribute is blurry in image no.2377993? give the explanation about the object. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRE... | what is the object whose attribute is blurry in image no.2377993? give the explanation about the object. |
image_and_language | select sum(case when t1.obj_class = 'wall' then 1 else 0 end) from obj_classes as t1 inner join img_obj as t2 on t1.obj_class_id = t2.obj_class_id where t2.img_id = 2353079 | Question: how many samples of 'wall' are there in image no.2353079? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL... | how many samples of 'wall' are there in image no.2353079? |
image_and_language | select t1.obj_class from obj_classes as t1 inner join img_obj as t2 on t1.obj_class_id = t2.obj_class_id where t2.img_id = 2320341 and t2.obj_sample_id = 10 | Question: state the object class of sample no.10 of image no.2320341. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_R... | state the object class of sample no.10 of image no.2320341. |
image_and_language | select cast(count(case when t1.obj_class = 'broccoli' then t2.obj_sample_id else null end) as real) / count(case when t1.obj_class = 'tomato' then t2.obj_sample_id else null end) times from obj_classes as t1 inner join img_obj as t2 on t1.obj_class_id = t2.obj_class_id | Question: how many times is the number of images containing 'broccoli' than 'tomato'? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, P... | how many times is the number of images containing 'broccoli' than 'tomato'? |
image_and_language | select count(*) from ( select img_id from img_obj_att group by img_id having count(att_class_id) > 25 ) t1 | Question: how many images have at least 25 attributes? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID, P... | how many images have at least 25 attributes? |
image_and_language | select distinct img_id from img_rel where obj1_sample_id = obj2_sample_id | Question: list all the ids of the images that have a self-relation relationship. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_C... | list all the ids of the images that have a self-relation relationship. |
image_and_language | select count(att_class_id) from img_obj_att group by img_id order by count(att_class_id) desc limit 1 | Question: how many objects are there in the attribute class id with the highest number of objects? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRE... | how many objects are there in the attribute class id with the highest number of objects? |
image_and_language | select obj_class_id from obj_classes where obj_class in ('bus', 'train', 'aeroplane', 'car', 'etc') | Question: what are the id of all the objects belonging to the transportation class? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRE... | what are the id of all the objects belonging to the transportation class? |
image_and_language | select att_class_id from att_classes where att_class = 'very large' | Question: what are the corresponding classes for the 'very large bike' attribute? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_... | what are the corresponding classes for the 'very large bike' attribute? |
image_and_language | select obj_class_id from obj_classes where obj_class = 'onion' | Question: what is the unique id number identifying the onion object class? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. ... | what is the unique id number identifying the onion object class? |
image_and_language | select t2.att_class from img_obj_att as t1 inner join att_classes as t2 on t1.att_class_id = t2.att_class_id where t1.img_id = 8 | Question: list all the corresponding classes for attributes of image id 8. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. ... | list all the corresponding classes for attributes of image id 8. |
image_and_language | select t2.x, t2.y, t2.w, t2.h from img_rel as t1 inner join img_obj as t2 on t1.img_id = t2.img_id where t1.pred_class_id = 144 and t1.img_id = 3 | Question: what is the bounding box of the object with image id 4 and a prediction relationship class id of 144? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_C... | what is the bounding box of the object with image id 4 and a prediction relationship class id of 144? |
image_and_language | select count(imgid) from ( select t1.img_id as imgid from img_obj_att as t1 inner join att_classes as t2 on t1.att_class_id = t2.att_class_id where t2.att_class = 'black' group by t1.img_id having count(t1.att_class_id) >= 5 ) t3 | Question: how many images have at least 5 'black' classes? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_I... | how many images have at least 5 'black' classes? |
image_and_language | select t1.pred_class_id from img_rel as t1 inner join img_obj as t2 on t1.img_id = t2.img_id order by t2.h desc limit 1 | Question: what is the prediction relationship class id of the tallest image? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS... | what is the prediction relationship class id of the tallest image? |
image_and_language | select t1.img_id as imgid from img_obj_att as t1 inner join att_classes as t2 on t1.att_class_id = t2.att_class_id where t2.att_class = 'white' group by t1.img_id order by count(t1.att_class_id) desc limit 1 | Question: which image has the highest number of 'white' class attributes? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. I... | which image has the highest number of 'white' class attributes? |
image_and_language | select t2.x, t2.y from img_rel as t1 inner join img_obj as t2 on t1.img_id = t2.img_id where t1.pred_class_id = 98 | Question: what are the x and y coordinates of all the images with a prediction relationship class id of 98? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASS... | what are the x and y coordinates of all the images with a prediction relationship class id of 98? |
image_and_language | select count(t2.pred_class_id) from img_rel as t1 inner join pred_classes as t2 on t1.pred_class_id = t2.pred_class_id where t1.img_id = 3050 and t2.pred_class = 'has' | Question: how many prediction classes with 'has' captions are there for image id 3050? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, ... | how many prediction classes with 'has' captions are there for image id 3050? |
image_and_language | 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 group by t1.obj_class | Question: list all the explanations about object classes of all the images with an x and y coordinate of 0. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASS... | list all the explanations about object classes of all the images with an x and y coordinate of 0. |
image_and_language | 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.obj1_sample_id = t1.obj2_sample_id group by t2.pred_class | Question: what are the captions of all the self-relation relationship prediction classes? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_I... | what are the captions of all the self-relation relationship prediction classes? |
image_and_language | select t2.x, t2.y, t2.h, t2.w from obj_classes as t1 inner join img_obj as t2 on t1.obj_class_id = t2.obj_class_id where t2.img_id = 2222 and t1.obj_class = 'feathers' | Question: give all the bounding boxes for image 2222 whose object classes are feathers. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID,... | give all the bounding boxes for image 2222 whose object classes are feathers. |
image_and_language | select count(t2.pred_class_id) from img_rel as t1 inner join pred_classes as t2 on t1.pred_class_id = t2.pred_class_id where t1.obj1_sample_id != t1.obj2_sample_id and t2.pred_class = 'on' | Question: among the objects that have multiple relations, how many images whose captions for the prediction class ids are 'on'? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_S... | among the objects that have multiple relations, how many images whose captions for the prediction class ids are 'on'? |
image_and_language | 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 | Question: what is the object class of the image with a bounding box of 0, 0, 135, 212? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, ... | what is the object class of the image with a bounding box of 0, 0, 135, 212? |
image_and_language | 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' | Question: provide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_... | provide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3. |
image_and_language | 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' | Question: identify the border's coordinates on the x and y axes that enclose a folk in image no. 6. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PR... | identify the border's coordinates on the x and y axes that enclose a folk in image no. 6. |
image_and_language | 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' | Question: define the onion's bounding box on image no. 285930. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> I... | define the onion's bounding box on image no. 285930. |
image_and_language | 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 | 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)? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IM... | 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)? |
image_and_language | 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 | Question: on image no. 5, name the attributes that are composed of multiple objects. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PR... | on image no. 5, name the attributes that are composed of multiple objects. |
image_and_language | 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 | Question: what attributes are used to describe the wall on image no. 27. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IM... | what attributes are used to describe the wall on image no. 27. |
image_and_language | 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 | Question: name the object element that is described as being scattered on image no. 10. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID,... | name the object element that is described as being scattered on image no. 10. |
image_and_language | 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' | Question: how many images contain 'bridge' as an object element? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL ->... | how many images contain 'bridge' as an object element? |
image_and_language | select cast(count(obj_class_id) as real) / count(distinct img_id) from img_obj | Question: how many object elements are there on average in each image? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_... | how many object elements are there on average in each image? |
image_and_language | 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 | Question: what colour is the van that can be spotted in image no. 1? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_RE... | what colour is the van that can be spotted in image no. 1? |
image_and_language | 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 j... | 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). | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H... | 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). |
image_and_language | 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 | Question: what is the relationship between object sample no. 25 and object sample no. 2 on image no. 1? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -... | what is the relationship between object sample no. 25 and object sample no. 2 on image no. 1? |
image_and_language | select count(att_class_id) from img_obj_att where img_id = 4 and obj_sample_id = 7 | Question: how many attributes are related to the object sample no. 7 on image no. 4? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PR... | how many attributes are related to the object sample no. 7 on image no. 4? |
image_and_language | select count(obj_class_id) from img_obj where img_id = 31 | Question: how many object elements can be detected on image no. 31? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL... | how many object elements can be detected on image no. 31? |
image_and_language | 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 | Question: on image no. 20, identify the attribute id that is composed of the highest number of objects. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -... | on image no. 20, identify the attribute id that is composed of the highest number of objects. |
image_and_language | select x, y, w, h from img_obj where img_id = 42 and obj_sample_id = 7 | Question: define the bounding box of the object sample no. 7 on image no. 42. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLAS... | define the bounding box of the object sample no. 7 on image no. 42. |
image_and_language | 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 | Question: on image no. 99 identify the percentage of objects that are described as white. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_I... | on image no. 99 identify the percentage of objects that are described as white. |
image_and_language | select count(att_class_id) from img_obj_att where img_id = 5 | Question: how many attribute classes are there for image id 5? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> I... | how many attribute classes are there for image id 5? |
image_and_language | select obj_class from obj_classes where obj_class_id = 10 | Question: state the explanation about object class 10. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID, P... | state the explanation about object class 10. |
image_and_language | 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 = 422 and t1.y = 63 and t1.w = 77 and t1.h = 363 | Question: name the object class of the image with a bounding (422, 63, 77, 363). | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_C... | name the object class of the image with a bounding (422, 63, 77, 363). |
image_and_language | select pred_class from pred_classes where pred_class_id = 12 | Question: what is the caption for the prediction class id 12? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IM... | what is the caption for the prediction class id 12? |
image_and_language | select x, y, w, h from img_obj where img_id = 8 | Question: indicate the bounding box of the image 8. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID, PRED... | indicate the bounding box of the image 8. |
image_and_language | select sum(case when t2.obj_class = 'tip' then 1 else 0 end) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 908 | Question: how many object samples in image no.908 are in the class of tip? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. ... | how many object samples in image no.908 are in the class of tip? |
image_and_language | select sum(case when t2.obj_class = 'kitchen' then 1 else 0 end) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 41 | Question: list out the number of object samples in image no.41 which are in the class of 'kitchen'? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PR... | list out the number of object samples in image no.41 which are in the class of 'kitchen'? |
image_and_language | 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 = 'paint' | Question: count the image numbers that contain the 'paint' object. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL ... | count the image numbers that contain the 'paint' object. |
image_and_language | select sum(case when t1.img_id = 2315533 then 1 else 0 end) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t2.obj_class = 'clouds' | Question: how many samples of clouds are there in the image no.2315533? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG... | how many samples of clouds are there in the image no.2315533? |
image_and_language | select obj_class_id from obj_classes where obj_class = 'onion' | Question: which object classes belong to the onion category? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG... | which object classes belong to the onion category? |
image_and_language | 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 = 1344 and t2.obj_class = 'spoon' | Question: what is the bounding box of 'spoon' in image id 1344? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> ... | what is the bounding box of 'spoon' in image id 1344? |
image_and_language | select cast(sum(case when t2.obj_class = 'surface' then 1 else 0 end) as real) * 100 / count(t1.obj_class_id) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 2654 | Question: what is the percentage of 'surface' object samples in image no.2654? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLA... | what is the percentage of 'surface' object samples in image no.2654? |
image_and_language | 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 = 'wood' | Question: how many images include the 'wood' objects? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID, PR... | how many images include the 'wood' objects? |
image_and_language | select t2.obj_class from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id order by t1.h desc limit 1 | Question: state the object class of the image with tallest bounding box. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IM... | state the object class of the image with tallest bounding box. |
image_and_language | select cast(sum(case when t2.obj_class = 'airplane' then 1 else 0 end) as real) * 100 / count(t2.obj_class) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id | Question: calculate the percentage of 'airplane' object class in the table. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS.... | calculate the percentage of 'airplane' object class in the table. |
image_and_language | 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 = 'animal' and t1.img_id = 660 | Question: how many samples of animal objects are there in image no.660? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG... | how many samples of animal objects are there in image no.660? |
image_and_language | select sum(case when t2.obj_class = 'bed' then 1 else 0 end) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 1098 | Question: name number of samples of 'bed' object are there in the image no.1098? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_C... | name number of samples of 'bed' object are there in the image no.1098? |
image_and_language | select t2.obj_class from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id order by t1.h limit 1 | Question: name the object class of the image with lowest bounding box. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_... | name the object class of the image with lowest bounding box. |
image_and_language | 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 = 250 and t2.obj_class = 'kitchen' | Question: indicating the bounding box of 'kitchen' in image id 250. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL... | indicating the bounding box of 'kitchen' in image id 250. |
image_and_language | select img_id from img_obj group by img_id having count(img_id) > 20 | Question: which images have more than 20 object samples? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID,... | which images have more than 20 object samples? |
image_and_language | select obj_sample_id from img_obj where img_id = 8 order by w desc limit 1 | Question: which object in image 8 is the widest? state its object sample id. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS... | which object in image 8 is the widest? state its object sample id. |
image_and_language | select obj_sample_id from img_obj where img_id = 5 and x = 634 and y = 468 | Question: find the object in image 5 where the object with the coordinate of (634, 468). | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID... | find the object in image 5 where the object with the coordinate of (634, 468). |
image_and_language | select obj_sample_id from img_obj_att group by obj_sample_id order by count(obj_sample_id) desc limit 1 | Question: which object has the highest attribute classes? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID... | which object has the highest attribute classes? |
image_and_language | 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 | Question: what is the ratio between the number of object samples in image 1 and the number of object samples in image 6? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_I... | what is the ratio between the number of object samples in image 1 and the number of object samples in image 6? |
image_and_language | select cast(count(obj_sample_id) as real) / count(distinct img_id) from img_obj | Question: calculate the average of object samples for the image. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL ->... | calculate the average of object samples for the image. |
image_and_language | 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' | Question: list all the ids of images that have objects with the attributes of 'wired'. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, ... | list all the ids of images that have objects with the attributes of 'wired'. |
image_and_language | 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 | Question: list all the object classes in image 10. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID, PRED_... | list all the object classes in image 10. |
image_and_language | 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' | Question: list attributes for object class 'tip' in image 1314. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> ... | list attributes for object class 'tip' in image 1314. |
image_and_language | 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_... | Question: what is the prediction class between object class 'chain' and 'label' in image 2360078? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED... | what is the prediction class between object class 'chain' and 'label' in image 2360078? |
image_and_language | 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' | Question: how many images have objects with the attributes of polka dot? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IM... | how many images have objects with the attributes of polka dot? |
image_and_language | 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 | Question: what are the attributes of the widest object in image 400? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_RE... | what are the attributes of the widest object in image 400? |
image_and_language | 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 | Question: state the name of the object class that has in most images. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_R... | state the name of the object class that has in most images. |
image_and_language | select t1.h, t1.w from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t1.img_id = 1 and t2.obj_class = 'van' | Question: state the width and height of the object with the class of 'van' in image 1. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, ... | state the width and height of the object with the class of 'van' in image 1. |
image_and_language | select t3.obj_sample_id, 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 where t3.img_id = 1 and t1.att_class = 'sparse' | Question: state the coordinate of x and y for the object with the attribute of 'sparse' in image 1. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PR... | state the coordinate of x and y for the object with the attribute of 'sparse' in image 1. |
image_and_language | select cast(sum(case when t2.obj_class = 'street lights' then 1 else 0 end) as real) * 100 / count(t1.obj_sample_id) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id | Question: calculate the percentage of object samples that are related to street lights. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID,... | calculate the percentage of object samples that are related to street lights. |
image_and_language | select cast(count(t1.obj_sample_id) as real) * 100 / count(case when t1.img_id = 5 then 1 else 0 end) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id where t2.obj_class = 'windows' | Question: based on image 5, what is the percentage of images that belong windows object class? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CL... | based on image 5, what is the percentage of images that belong windows object class? |
image_and_language | select count(img_id) from img_obj where x = 5 and y = 5 | Question: how many images have an x-coordinate of 5 and y-coordinate of 5? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. ... | how many images have an x-coordinate of 5 and y-coordinate of 5? |
image_and_language | select count(img_id) from img_obj where obj_sample_id < 15 | Question: how many images have less than 15 object samples? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_... | how many images have less than 15 object samples? |
image_and_language | select count(img_id) from img_obj where obj_class_id = 10 | Question: how many images have a total of 10 attribute classes? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> ... | how many images have a total of 10 attribute classes? |
image_and_language | select img_id from img_rel group by pred_class_id having count(distinct obj1_sample_id) != 0 and count(distinct obj2_sample_id) != 0 | Question: list the id of all images with objects that have multiple relations. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLA... | list the id of all images with objects that have multiple relations. |
image_and_language | 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 = 'vegetables' or t2.obj_class = 'fruits' | Question: how many images have 'vegetable' and 'fruits' as their object classes? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_C... | how many images have 'vegetable' and 'fruits' as their object classes? |
image_and_language | select distinct 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 = 'parked on' | Question: what is the image id with a predicted class of 'parked on'? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_R... | what is the image id with a predicted class of 'parked on'? |
image_and_language | 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 | Question: list all the object classes of the images that have a (5,5) coordinate. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_... | list all the object classes of the images that have a (5,5) coordinate. |
image_and_language | 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' | Question: how many images have 'keyboard' as their object class? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL ->... | how many images have 'keyboard' as their object class? |
image_and_language | 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 | 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? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, A... | 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? |
image_and_language | 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' | Question: list all the id of the images that have an attribute class of 'horse'. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_C... | list all the id of the images that have an attribute class of 'horse'. |
image_and_language | 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' | Question: provide the x-coordinate and y-coordinate of the image with an attribute class of ''horse' and an object class of 'fur'. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OB... | provide the x-coordinate and y-coordinate of the image with an attribute class of ''horse' and an object class of 'fur'. |
image_and_language | 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 | Question: list all the attribute classes of the image id '15'. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> I... | list all the attribute classes of the image id '15'. |
image_and_language | 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' | Question: for those objects that have multiple relations, how many images have a prediction class of 'reading'? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_C... | for those objects that have multiple relations, how many images have a prediction class of 'reading'? |
image_and_language | 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' | Question: how many images have 'picture' as their attribute class? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL ... | how many images have 'picture' as their attribute class? |
image_and_language | 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' | Question: how many images have 'picture' as their attribute class and 'bear' as their object class? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PR... | how many images have 'picture' as their attribute class and 'bear' as their object class? |
image_and_language | 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 | Question: list all the attribute classes of the images that have a (5,5) coordinate. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PR... | list all the attribute classes of the images that have a (5,5) coordinate. |
image_and_language | select avg(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' | Question: calculate the average number of images with an attribute class of 'keyboard'. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID,... | calculate the average number of images with an attribute class of 'keyboard'. |
image_and_language | select cast(count(case when t2.obj_class = 'man' then 1 else 0 end) as real) / count(case when t2.obj_class = 'person' then 1 else 0 end) from img_obj as t1 inner join obj_classes as t2 on t1.obj_class_id = t2.obj_class_id | Question: calculate the ratio of the total number of images with an object class of 'man' and 'person'. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -... | calculate the ratio of the total number of images with an object class of 'man' and 'person'. |
image_and_language | select obj_sample_id from img_obj where img_id = 17 and x = 0 and y = 0 | Question: list the object sample ids of image id 17 with coordinates (0,0). | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS.... | list the object sample ids of image id 17 with coordinates (0,0). |
image_and_language | select w, h from img_obj where obj_sample_id = 2 | Question: list all bounding box widths and heights of object sample id 2. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. I... | list all bounding box widths and heights of object sample id 2. |
image_and_language | select count(img_id) from img_obj where img_id = 12 and y = 0 | Question: in the y coordinate of image id 12, how many are 0? | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IM... | in the y coordinate of image id 12, how many are 0? |
image_and_language | 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 = 22 | Question: list all the attribute classes of image id 22. | Tables: ATT_CLASSES -> ATT_CLASS_ID, ATT_CLASS. OBJ_CLASSES -> OBJ_CLASS_ID, OBJ_CLASS. IMG_OBJ -> IMG_ID, OBJ_SAMPLE_ID, OBJ_CLASS_ID, X, Y, W, H. IMG_OBJ_ATT -> IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID. PRED_CLASSES -> PRED_CLASS_ID, PRED_CLASS. IMG_REL -> IMG_ID,... | list all the attribute classes of image id 22. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.