Chinastark/bird_dataset huggingface dataset:
Database: works_cycles
Note: average profit percentage = DIVIDE(SUBTRACT(listprice, standardcost)), (standardcost)));
Question: What is the the average percentage of profit for the all the product?
SQL: SELECT avg((productlistpricehistory.listprice - productcosthistory.standardcost) * 100 / productcosthistory.standardcost) FROM productlistpricehistory INNER JOIN productcosthistory ON productlistpricehistory.productid = productcosthistory.productid
Database: works_cycles
Note: proportion = DIVIDE(SUM(name = 'Subassembly'). (COUNT(workorderid)));
Question: What proportion of work order is in Subassembly?
SQL: SELECT 100.0 * sum(CASE WHEN LOCATION.name = 'Subassembly' THEN 1 ELSE 0 END) / count(workorderrouting.workorderid) FROM LOCATION INNER JOIN workorderrouting ON LOCATION.locationid = workorderrouting.locationid
Database: image_and_language
Note: object samples refers to obj_sample_id; image no.1 refers to img_id = 1;
Question: How many object samples are there in image no.1?
SQL: SELECT count(obj_sample_id) FROM img_obj WHERE img_id = 1
Database: image_and_language
Note: over 20 object samples refers to COUNT(obj_sample_id) > 20;
Question: How many images have over 20 object samples?
SQL: SELECT count(t1.img_id) FROM ( SELECT img_id FROM img_obj GROUP BY img_id HAVING count(obj_sample_id) > 20 ) t1
Database: image_and_language
Note: ID of the image refers to img_id; most number of object samples refers to max(count(obj_sample_id));
Question: What is the ID of the image with the most number of object samples?
SQL: SELECT img_id FROM img_obj GROUP BY img_id ORDER BY count(obj_sample_id) DESC LIMIT 1
Database: image_and_language
Note: IDs of the object samples refers to obj_sample_id; class no. 297 in image no.1 refers to img_id = 1 and obj_class_id = 297;
Question: Please list the IDs of the object samples in class no. 297 in image no.1.
SQL: SELECT obj_sample_id FROM img_obj WHERE img_id = 1 AND obj_class_id = 297
Database: image_and_language
Note: self-relations refers to obj1_sample_id = obj2_sample_id; image no.5 refers to img_id = 5;
Question: How many self-relations are there between the object samples in image no.5?
SQL: SELECT sum(CASE WHEN img_id = 5 THEN 1 ELSE 0 END) FROM img_rel WHERE obj1_sample_id = obj2_sample_id
Database: image_and_language
Note: bounding box of the object sample refers to (x, y, w, h); image no.5 refers to img_id = 5; has a self-relation refers to obj1_sample_id = obj2_sample_id;
Question: What is the bounding box of the object sample in image no.5 that has a self-relation?
SQL: SELECT img_obj.x, img_obj.y, img_obj.w, img_obj.h FROM img_rel INNER JOIN img_obj ON img_rel.img_id = img_obj.img_id WHERE img_rel.img_id = 5 AND img_rel.obj1_sample_id = img_rel.obj2_sample_id
Database: image_and_language
Note: object samples refers to obj_class_id; image no.1 refers to img_id = 1; in the class of "man" refers to obj_class = 'man';
Question: How many object samples in image no.1 are in the class of "man"?
SQL: SELECT sum(CASE WHEN obj_classes.obj_class = 'man' THEN 1 ELSE 0 END) FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 1
Database: image_and_language
Note: have at least one object sample in the class of "man" refers to count(img_id where obj_class = 'man') >= 1;
Question: How many images have at least one object sample in the class of "man"?
SQL: SELECT count(t.img_id) FROM ( SELECT img_obj.img_id FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE obj_classes.obj_class = 'man' GROUP BY img_obj.img_id ) t
Database: image_and_language
Note: classes of all the object samples refers to obj_class; image no.1 refers to img_id = 1;
Question: Please list the classes of all the object samples in image no.1.
SQL: SELECT obj_classes.obj_class FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 1 GROUP BY obj_classes.obj_class
Database: image_and_language
Note: relation refers to pred_class; object sample no.8 and object sample no.4 refers to obj1_sample_id = 8 AND obj2_sample_id = 4; image no.1 refers to img_id = 1;
Question: What is the relation between object sample no.8 and object sample no.4 in image no.1?
SQL: SELECT pred_classes.pred_class FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE img_rel.img_id = 1 AND img_rel.obj1_sample_id = 8 AND img_rel.obj2_sample_id = 4
Database: image_and_language
Note: pairs of object samples refers to obj1_sample_id and obj2_sample_id; image no.1 refers to img_id = 1; relation of "parked on" refers to pred_class = 'parked on';
Question: How many pairs of object samples in image no.1 have the relation of "parked on"?
SQL: SELECT sum(CASE WHEN pred_classes.pred_class = 'parked on' THEN 1 ELSE 0 END) FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE img_rel.img_id = 1 AND img_rel.obj1_sample_id != obj2_sample_id
Database: image_and_language
Note: predicted relation classes refers to pred_class; object sample no.14 in image no.1 refers to obj1_sample_id = 14 AND obj2_sample_id = 14 and img_id = 1;
Question: Please list all the predicted relation classes of object sample no.14 in image no.1.
SQL: SELECT pred_classes.pred_class FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE img_rel.obj1_sample_id = 14 AND img_rel.obj2_sample_id = 14
Database: image_and_language
Note: how many images have at least one pair of object samples with the relation "parked on" refers to count(img_id) where obj1_sample_id ! = obj2_sample_id and pred_class = 'parked on';
Question: How many images have at least one pair of object samples with the relation "parked on"?
SQL: SELECT sum(CASE WHEN pred_classes.pred_class = 'parked on' THEN 1 ELSE 0 END) FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE img_rel.obj1_sample_id != img_rel.obj2_sample_id
Database: image_and_language
Note: IDs of all the images refers to img_id; relation "parked on" refers to pred_class = 'parked on'; more than 2 pairs refers to count(img_id) where obj1_sample_id ! = obj2_sample_id;
Question: Please list the IDs of all the images with more than 2 pairs of object samples with the relation "parked on".
SQL: SELECT img_rel.img_id FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE pred_classes.pred_class = 'parked on' AND img_rel.obj1_sample_id != img_rel.obj2_sample_id GROUP BY img_rel.img_id HAVING count(img_rel.img_id) > 2
Database: image_and_language
Note: predicted relation class refers to pred_class; self-relations refers to obj1_sample_id = obj2_sample_id; image no.5 refers to img_id = 5;
Question: To which predicted relation class does the self-relation of the object sample in image no.5 belong?
SQL: SELECT pred_classes.pred_class FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE img_rel.img_id = 5 AND img_rel.obj1_sample_id = img_rel.obj2_sample_id
Database: image_and_language
Note: bounding boxes of the object samples refers to (x, y, w, h); predicted relation class of "by" refers to pred_class = 'by'; image no.1 refers to img_id = 1;
Question: What are the bounding boxes of the object samples with a predicted relation class of "by" in image no.1?
SQL: SELECT img_obj.x, img_obj.y, img_obj.w, img_obj.h FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id INNER JOIN img_obj ON img_rel.obj1_sample_id = img_obj.obj_class_id WHERE img_rel.img_id = 1 AND pred_classes.pred_class = 'by'
Database: image_and_language
Note: relation "parked on" refers to pred_class = 'parked on'; image no.1 refers to img_id = 1; average difference in the y coordinate = divide(sum(y), count(pred_class)) where obj1_sample_id ! = obj2_sample_id;
Question: What is the average difference in the y coordinate of 2 object samples with the relation "parked on" in image no.1?
SQL: SELECT cast(sum(img_obj.y) AS REAL) / count(CASE WHEN pred_classes.pred_class = 'parked on' THEN 1 ELSE NULL END) FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id INNER JOIN img_obj ON img_rel.obj1_sample_id = img_obj.obj_class_id WHERE img_rel.img_id = 1 AND img_rel.obj1_sample_id != img_rel.obj2_sample_id
Database: image_and_language
Note: object samples refers to obj_sample_id; class of "man" refers to obj_class = 'man'; image no.1 refers to img_id = 1; percentage = divide(count(obj_sample_id)when obj_class = 'man', count(obj_sample_id)) as percentage;
Question: What is the percentage of the object samples in the class of "man" in image no.1?
SQL: SELECT cast(count(CASE WHEN obj_classes.obj_class = 'man' THEN 1 ELSE NULL END) AS REAL) * 100 / count(obj_classes.obj_class_id) FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 1
Database: image_and_language
Note: attribute classes refers to att_class;
Question: State the total number of the attribute classes.
SQL: SELECT count(att_class_id) FROM att_classes
Database: image_and_language
Note: object classes refers to obj_class;
Question: How many object classes are there in the database?
SQL: SELECT count(obj_class_id) FROM obj_classes
Database: image_and_language
Note: predicted classes refers to pred_class;
Question: Provide the number of predicted classes.
SQL: SELECT count(pred_class_id) FROM pred_classes
Database: image_and_language
Note: bounding box refers to (x, y, w, h); kite refers to obj_class = 'kite'; image no.2324765 refers to img_id = 2324765;
Question: Give the bounding box of the kite in image no.2324765.
SQL: SELECT img_obj.x, img_obj.y, img_obj.w, img_obj.h FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 2324765 AND obj_classes.obj_class = 'kite'
Database: image_and_language
Note: white objects refers to att_class = 'white'; image no.2347915 refers to img_id = 2347915;
Question: How many white objects are there in image no.2347915?
SQL: SELECT sum(CASE WHEN att_classes.att_class = 'white' THEN 1 ELSE 0 END) FROM img_obj_att INNER JOIN att_classes ON img_obj_att.att_class_id = att_classes.att_class_id WHERE img_obj_att.img_id = 2347915
Database: image_and_language
Note: number of samples refers to obj_sample_id; image no.2377985 refers to img_id = 2377985; attribute is electrical refers to att_class = 'electrical';
Question: Give the number of samples in image no.2377985 whose attribute is electrical.
SQL: SELECT sum(CASE WHEN att_classes.att_class = 'white' THEN 1 ELSE 0 END) FROM img_obj_att INNER JOIN att_classes ON img_obj_att.att_class_id = att_classes.att_class_id WHERE img_obj_att.img_id = 2347915
Database: image_and_language
Note: relationship refers to pred_class; object sample no.12 and no.8 of image no.2345511 refers to img_id = 2345511 AND obj1_sample_id = 12 AND obj2_sample_id = 8;
Question: What is the relationship between object sample no.12 and no.8 of image no.2345511?
SQL: SELECT pred_classes.pred_class FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE img_rel.img_id = 2345511 AND img_rel.obj1_sample_id = 12 AND img_rel.obj2_sample_id = 8
Database: image_and_language
Note: object number of the sample refers to obj1_sample_id; object sample no.1 from image no.2345524 refers to obj2_sample_id = 1 and img_id = 2345524;
Question: Give the object number of the sample which has the relationship of "lying on" with object sample no.1 from image no.2345524.
SQL: SELECT img_rel.obj1_sample_id FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id WHERE img_rel.img_id = 2345524 AND pred_classes.pred_class = 'lying on' AND img_rel.obj2_sample_id = 1
Database: image_and_language
Note: samples of food object refers to obj_class = 'food'; image no.6 refers to img_id = 6;
Question: How many samples of food object are there in image no.6?
SQL: SELECT count(img_obj.obj_sample_id) FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 6 AND obj_classes.obj_class = 'food'
Database: image_and_language
Note: number of images refers to img_id; object sample of "suit" refers to obj_class = 'suit';
Question: Give the number of images containing the object sample of "suit".
SQL: SELECT count(t.img_id) FROM ( SELECT img_obj.img_id FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE obj_classes.obj_class = 'suit' GROUP BY img_obj.img_id ) t
Database: image_and_language
Note: relationship refers to pred_class; "feathers" and "onion" in image no.2345528 refers to img_id = 2345528 and obj_class = 'feathers' and obj_class = 'onion';
Question: What is the relationship between "feathers" and "onion" in image no.2345528?
SQL: SELECT pred_classes.pred_class FROM pred_classes INNER JOIN img_rel ON pred_classes.pred_class_id = img_rel.pred_class_id INNER JOIN img_obj ON img_rel.obj1_sample_id = img_obj.obj_sample_id INNER JOIN obj_classes ON img_obj.obj_class_id = obj_classes.obj_class_id WHERE (obj_classes.obj_class = 'feathers' OR obj_classes.obj_class = 'onion') AND img_rel.img_id = 2345528 GROUP BY pred_classes.pred_class
Database: image_and_language
Note: attribute of the weeds refers to obj_class = 'weeds'; image no.2377988 refers to img_id = 2377988;
Question: Tell the attribute of the weeds in image no.2377988.
SQL: SELECT att_classes.att_class FROM img_obj_att INNER JOIN att_classes ON img_obj_att.att_class_id = att_classes.att_class_id INNER JOIN img_obj ON img_obj_att.img_id = img_obj.img_id INNER JOIN obj_classes ON img_obj.obj_class_id = obj_classes.obj_class_id WHERE obj_classes.obj_class = 'weeds' AND img_obj_att.img_id = 2377988
Database: image_and_language
Note: attribute is blurry refers to att_class = 'blurry'; image no.2377993 refers to img_id = 22377993; explanation about the object refers to obj_class;
Question: What is the object whose attribute is blurry in image no.2377993? Give the explanation about the object.
SQL: SELECT obj_classes.obj_class_id, obj_classes.obj_class FROM img_obj_att INNER JOIN att_classes ON img_obj_att.att_class_id = att_classes.att_class_id INNER JOIN img_obj ON img_obj_att.img_id = img_obj.img_id INNER JOIN obj_classes ON img_obj.obj_class_id = obj_classes.obj_class_id WHERE att_classes.att_class = 'blurry' AND img_obj_att.img_id = 22377993
Database: image_and_language
Note: samples of "wall" refers to obj_sample_id and obj_class = 'wall' ; image no.2353079 refers to img_id = 2353079;
Question: How many samples of "wall" are there in image no.2353079?
SQL: SELECT sum(CASE WHEN obj_classes.obj_class = 'wall' THEN 1 ELSE 0 END) FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 2353079
Database: image_and_language
Note: object class refers to obj_class; sample no.10 refers to obj_sample_id = 10; image no.2320341 refers to img_id = 2320341;
Question: State the object class of sample no.10 of image no.2320341.
SQL: SELECT obj_classes.obj_class FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 2320341 AND img_obj.obj_sample_id = 10
Database: image_and_language
Note: images refers to img_id; "broccoli" refers to obj_class = 'broccoli'; "tomato" refers to obj_class = 'tomato' ; how many times = divide(count(obj_sample_id) when obj_class = 'broccoli', count(obj_sample_id) when obj_class = 'tomato');
Question: How many times is the number of images containing "broccoli" than "tomato"?
SQL: SELECT cast(count(CASE WHEN obj_classes.obj_class = 'broccoli' THEN img_obj.obj_sample_id ELSE NULL END) AS REAL) / count(CASE WHEN obj_classes.obj_class = 'tomato' THEN img_obj.obj_sample_id ELSE NULL END) times FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id
Database: image_and_language
Note: images refers to img_id; have at least 25 attributes refers to count(att_class_id) >= 25;
Question: How many images have at least 25 attributes?
SQL: SELECT count(*) FROM ( SELECT img_id FROM img_obj_att GROUP BY img_id HAVING count(att_class_id) > 25 ) t1
Database: image_and_language
Note: ids of the images refers to img_id; self-relations refers to obj1_sample_id = obj2_sample_id;
Question: List all the ids of the images that have a self-relation relationship.
SQL: SELECT DISTINCT img_id FROM img_rel WHERE obj1_sample_id = obj2_sample_id
Database: image_and_language
Note: objects refers to obj_sample_id; attribute class id with the highest number of objects refers to max(COUNT(att_class_id));
Question: How many objects are there in the attribute class id with the highest number of objects?
SQL: SELECT count(att_class_id) FROM img_obj_att GROUP BY img_id ORDER BY count(att_class_id) DESC LIMIT 1
Database: image_and_language
Note: id of all the objects belonging to the transportation class refers to obj_class_id and obj_class IN ('bus', 'train', 'aeroplane', 'car', 'etc.');
Question: What are the id of all the objects belonging to the transportation class?
SQL: SELECT obj_class_id FROM obj_classes WHERE obj_class IN ('bus', 'train', 'aeroplane', 'car', 'etc')
Database: image_and_language
Note: attribute refers to att_class;
Question: What are the corresponding classes for the "very large bike" attribute?
SQL: SELECT att_class_id FROM att_classes WHERE att_class = 'very large'
Database: image_and_language
Note: unique id number identifying refers to obj_class_id; onion object class refers to obj_class = 'onion';
Question: What is the unique id number identifying the onion object class?
SQL: SELECT obj_class_id FROM obj_classes WHERE obj_class = 'onion'
Database: image_and_language
Note: classes for attributes refers to att_class; image id 8 refers to img_id = 8;
Question: List all the corresponding classes for attributes of image id 8.
SQL: SELECT att_classes.att_class FROM img_obj_att INNER JOIN att_classes ON img_obj_att.att_class_id = att_classes.att_class_id WHERE img_obj_att.img_id = 8
Database: image_and_language
Note: bounding box of the object refers to (x, y, w, h); image id refers to img_id; prediction relationship class id of 144 refers to pred_class_id = 144;
Question: What is the bounding box of the object with image id 4 and a prediction relationship class id of 144?
SQL: SELECT img_obj.x, img_obj.y, img_obj.w, img_obj.h FROM img_rel INNER JOIN img_obj ON img_rel.img_id = img_obj.img_id WHERE img_rel.pred_class_id = 144 AND img_rel.img_id = 3
Database: image_and_language
Note: images refers to img_id; have at least 5 "black" classes refers to count(att_class_id) where att_class = 'black' >= 5;
Question: How many images have at least 5 "black" classes?
SQL: SELECT count(imgid) FROM ( SELECT img_obj_att.img_id AS imgid FROM img_obj_att INNER JOIN att_classes ON img_obj_att.att_class_id = att_classes.att_class_id WHERE att_classes.att_class = 'black' GROUP BY img_obj_att.img_id HAVING count(img_obj_att.att_class_id) >= 5 ) t3
Database: image_and_language
Note: prediction relationship class id refers to pred_class_id; tallest image refers to max(h);
Question: What is the prediction relationship class id of the tallest image?
SQL: SELECT img_rel.pred_class_id FROM img_rel INNER JOIN img_obj ON img_rel.img_id = img_obj.img_id ORDER BY img_obj.h DESC LIMIT 1
Database: image_and_language
Note: "white" class attributes refers to att_class = 'white'; highest number refers to max(count(att_class_id));
Question: Which image has the highest number of "white" class attributes?
SQL: SELECT img_obj_att.img_id AS imgid FROM img_obj_att INNER JOIN att_classes ON img_obj_att.att_class_id = att_classes.att_class_id WHERE att_classes.att_class = 'white' GROUP BY img_obj_att.img_id ORDER BY count(img_obj_att.att_class_id) DESC LIMIT 1
Database: image_and_language
Note: prediction relationship class id of 98 refers to pred_class_id = 98;
Question: What are the x and y coordinates of all the images with a prediction relationship class id of 98?
SQL: SELECT img_obj.x, img_obj.y FROM img_rel INNER JOIN img_obj ON img_rel.img_id = img_obj.img_id WHERE img_rel.pred_class_id = 98
Database: image_and_language
Note: prediction classes with "has" captions refers to pred_class = 'has'; image id 3050 refers to img_id = 3050;
Question: How many prediction classes with "has" captions are there for image id 3050?
SQL: SELECT count(pred_classes.pred_class_id) FROM img_rel INNER JOIN pred_classes ON img_rel.pred_class_id = pred_classes.pred_class_id WHERE img_rel.img_id = 3050 AND pred_classes.pred_class = 'has'
Database: image_and_language
Note: explanations about distinct object classes refers to obj_class; images refers to img_id; x and y coordinate of 0 refers to x = 0 AND y = 0;
Question: List all the explanations about object classes of all the images with an x and y coordinate of 0.
SQL: SELECT obj_classes.obj_class FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.x = 0 AND img_obj.y = 0 GROUP BY obj_classes.obj_class
Database: image_and_language
Note: self-relation relationship refers to obj1_sample_id = obj2_sample_id and pred_class; captions of prediction classes refers to pred_class;
Question: What are the captions of all the self-relation relationship prediction classes?
SQL: SELECT pred_classes.pred_class FROM img_rel INNER JOIN pred_classes ON img_rel.pred_class_id = pred_classes.pred_class_id WHERE img_rel.obj1_sample_id = img_rel.obj2_sample_id GROUP BY pred_classes.pred_class
Database: image_and_language
Note: bounding boxes refers to (x, y, w, h); image 2222 refers to img_id = 2222; object classes are feathers refers to obj_class = 'feathers';
Question: Give all the bounding boxes for image 2222 whose object classes are feathers.
SQL: SELECT img_obj.x, img_obj.y, img_obj.h, img_obj.w FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.img_id = 2222 AND obj_classes.obj_class = 'feathers'
Database: image_and_language
Note: objects that have multiple relations refers to obj1_sample_id ! = obj2_sample_id; captions for the prediction class ids are "on" refers to pred_class = 'on';
Question: Among the objects that have multiple relations, how many images whose captions for the prediction class ids are "on"?
SQL: SELECT count(pred_classes.pred_class_id) FROM img_rel INNER JOIN pred_classes ON img_rel.pred_class_id = pred_classes.pred_class_id WHERE img_rel.obj1_sample_id != img_rel.obj2_sample_id AND pred_classes.pred_class = 'on'
Database: image_and_language
Note: 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;
Question: What is the object class of the image with a bounding box of 0, 0, 135, 212?
SQL: SELECT obj_classes.obj_class FROM obj_classes INNER JOIN img_obj ON obj_classes.obj_class_id = img_obj.obj_class_id WHERE img_obj.x = 0 AND img_obj.y = 0 AND img_obj.w = 135 AND img_obj.h = 212
Database: image_and_language
Note: dimensions of the bounding box refers to (w, h); keyboard refers to obj_class = 'keyboard'; image no. 3 refers to img_id = 3;
Question: Provide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3.
SQL: SELECT img_obj.w, img_obj.h FROM img_obj INNER JOIN obj_classes ON img_obj.obj_class_id = obj_classes.obj_class_id WHERE img_obj.img_id = 3 AND obj_classes.obj_class = 'keyboard'
Database: image_and_language
Note: 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;
Question: Identify the border's coordinates on the X and Y axes that enclose a folk in image no. 6.
SQL: SELECT img_obj.x, img_obj.y FROM img_obj INNER JOIN obj_classes ON img_obj.obj_class_id = obj_classes.obj_class_id WHERE img_obj.img_id = 6 AND obj_classes.obj_class = 'folk'