Simple Question (Direct)
Simple Question
Q383142
P734
Q82799
USER
Who has the surname Leslie I. Carey ?
(Q383142,P734,c(Q82799))
action filter_type
action find
entity Q383142
relation P734
type Q82799
['Q383142', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q383142 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Leslie I. Carey
action filter_type
action find
entity Leslie I. Carey
relation family name
type name
['Leslie I. Carey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Leslie_I._Carey property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q5039154
SYSTEM
Carey
Q5039154
(Q383142,P734,c(Q82799))
action filter_type
action find
entity Q383142
relation P734
type Q82799
[ANSWER] has the surname Leslie I. [ANSWER]
['Q383142', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q383142 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Carey
Carey has the surname Leslie I. Carey
Carey
action filter_type
action find
entity Leslie I. Carey
relation family name
type name
['Leslie I. Carey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Leslie_I._Carey property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q383142
P19
Q852446
USER
Which US administrative territory is the place of birth of that person ?
(Q5039154,P19,c(Q852446))
action filter_type
action find
entity Q383142
relation P19
type Q852446
['Q5039154', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?v WHERE { resource:Q383142 property:P19 ?v . ?v rdf:type ontology:Q852446 }
Leslie I. Carey
action filter_type
action find
entity Leslie I. Carey
relation place of birth
type administrative territorial entity of the United States
['Carey', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?v WHERE { resource:Leslie_I._Carey property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q779
SYSTEM
Connecticut
Q779
(Q5039154,P19,c(Q852446))
action filter_type
action find
entity Q383142
relation P19
type Q852446
[ANSWER] is the place of birth of that person
['Q5039154', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?v WHERE { resource:Q383142 property:P19 ?v . ?v rdf:type ontology:Q852446 }
Connecticut
Connecticut is the place of birth of that person
Connecticut
action filter_type
action find
entity Leslie I. Carey
relation place of birth
type administrative territorial entity of the United States
['Carey', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?v WHERE { resource:Leslie_I._Carey property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P163
Q17335294 Q852446
USER
How many US administrative territories are associated with around the same number of coats of arms as that US administrative territory ?
(c(Q852446),P163,c(Q17335294))
action count
action approx
action find_tuple_counts
relation P163
type Q852446
type Q17335294
action count
action filter_type
action find
entity Q779
relation P163
type Q852446
[{'concept': 'Q852446'}, 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { ?v property:P163 ?k . ?v rdf:type ontology:Q852446 . ?k rdf:type ontology:Q17335294 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q779 property:P163 ?h . ?h rdf:type ontology:Q852446 } } . FILTER ( ?a = ?s ) }
action count
action approx
action find_tuple_counts
relation flag
type administrative territorial entity of the United States
type flag or coat of arms
action count
action filter_type
action find
entity Connecticut
relation flag
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { ?v property:flag ?k . ?v rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?k rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Connecticut property:flag ?h . ?h rdf:type ontology:administrative_territorial_entity_of_the_United_States } } . FILTER ( ?a = ?s ) }
[]
flag or coat of arms administrative territorial entity of the United States
SYSTEM
35
Q1603 Q824 Q724 Q1537 Q1370 Q1439 Q1612 Q1454 Q1456 Q1509 Q1415 Q99 Q782 Q1400 Q1384 Q1546 Q1522 Q1166 Q816 Q771 Q1387 Q1261 Q1408 Q1649 Q1428 Q759 Q1558 Q1588 Q173 Q797 Q1212 Q1211 Q1214 Q16551 Q1494
(c(Q852446),P163,c(Q17335294))
action count
action approx
action find_tuple_counts
relation P163
type Q852446
type Q17335294
action count
action filter_type
action find
entity Q779
relation P163
type Q852446
[ANSWER]
[{'concept': 'Q852446'}, 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { ?v property:P163 ?k . ?v rdf:type ontology:Q852446 . ?k rdf:type ontology:Q17335294 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q779 property:P163 ?h . ?h rdf:type ontology:Q852446 } } . FILTER ( ?a = ?s ) }
Kentucky Oregon Maine Wisconsin Virginia Texas Arkansas North Carolina South Carolina Tennessee Indiana California Hawaii Pennsylvania New York Iowa New Mexico Michigan Arizona Massachusetts Rhode Island Colorado New Jersey Oklahoma Georgia New Hampshire Kansas Louisiana Alabama Alaska Montana South Dakota Wyoming Vermont Mississippi
35
action count
action approx
action find_tuple_counts
relation flag
type administrative territorial entity of the United States
type flag or coat of arms
action count
action filter_type
action find
entity Connecticut
relation flag
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { ?v property:flag ?k . ?v rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?k rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Connecticut property:flag ?h . ?h rdf:type ontology:administrative_territorial_entity_of_the_United_States } } . FILTER ( ?a = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q779
P840
Q838948 Q15416
USER
How many works of art and television programs have their setting located at Connecticut ?
(c(Q838948),P840,Q779) (c(Q15416),P840,Q779)
action count
action union
action filter_type
action find_reverse
entity Q779
relation P840
type Q838948
action filter_type
action find_reverse
entity Q779
relation P840
type Q15416
[{'concept': 'Q838948'}, 'P840', 'Q779'] [{'concept': 'Q15416'}, 'P840', 'Q779']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:P840 resource:Q779 . ?r rdf:type ontology:Q838948 } UNION { ?r property:P840 resource:Q779 . ?r rdf:type ontology:Q15416 } }
Connecticut
action count
action union
action filter_type
action find_reverse
entity Connecticut
relation narrative location
type work of art
action filter_type
action find_reverse
entity Connecticut
relation narrative location
type television program
[{'concept': 'work of art'}, 'narrative location', 'Connecticut'] [{'concept': 'television program'}, 'narrative location', 'Connecticut']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:narrative_location resource:Connecticut . ?r rdf:type ontology:work_of_art } UNION { ?r property:narrative_location resource:Connecticut . ?r rdf:type ontology:television_program } }
[]
work of art television program
SYSTEM
87 works of art and 16 television programs
Q14272676 Q1962573 Q3284961 Q4205755 Q4933347 Q5611721 Q651722 Q7717489 Q1467832 Q2946178 Q780434 Q4656359 Q45692 Q2269586 Q83612 Q731261 Q950721 Q387414 Q786562 Q2563230 Q584824 Q7454805 Q1640378 Q179743 Q1704776 Q3203623 Q1130664 Q1637939 Q1167551 Q320384 Q1313530 Q4313024 Q1219582 Q744658 Q1547262 Q4968816 Q4442283 Q1193138 Q1431567 Q898840 Q1372295 Q2947620 Q827494 Q1048360 Q174601 Q201924 Q2819717 Q8034406 Q797972 Q2468927 Q6672498 Q1382263 Q7748194 Q736151 Q546417 Q1196815 Q3773355 Q782734 Q7738119 Q3278133 Q4291443 Q487271 Q4694846 Q6351961 Q1064838 Q3793484 Q978770 Q128730 Q7755589 Q200299 Q1465829 Q1331243 Q6061284 Q1117613 Q634942 Q276299 Q12132410 Q848836 Q7751721 Q23609 Q3787005 Q4159348 Q7751312 Q182373 Q2320191 Q1212768 Q5708728 Q5540479 Q1185794 Q606481 Q472361 Q7864539 Q610508 Q1550962 Q1059536 Q764639 Q567996 Q1183268 Q1757188 Q1360651 Q18357190 Q2966030 Q1766190
(c(Q838948),P840,Q779) (c(Q15416),P840,Q779)
action count
action union
action filter_type
action find_reverse
entity Q779
relation P840
type Q838948
action filter_type
action find_reverse
entity Q779
relation P840
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q779'] [{'concept': 'Q15416'}, 'P840', 'Q779']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:P840 resource:Q779 . ?r rdf:type ontology:Q838948 } UNION { ?r property:P840 resource:Q779 . ?r rdf:type ontology:Q15416 } }
The Other Woman Reckless Mame Woman Wanted Summer Holiday Grown Ups 2 Quiz Show The Big Bad Swim Murder in Greenwich Loving Hearts in Atlantis A Death in Canaan The Haunting in Connecticut Boomerang The Skulls Outside Providence Parrish Orphan The Good Shepherd This Happy Feeling Night and Day Series 7: The Contenders Rally 'Round the Flag Bringing Up Baby Mr. Blandings Builds His Dream House The Man in the Net Far from Heaven Thinner The Secret Life of Walter Mitty Beetlejuice Riding in Cars with Boys Let's Scare Jessica to Death Auntie Mame The Visitors Stanley & Iris Bristol Boys The Stepford Husbands The Ice Storm Holiday Inn Gentleman's Agreement The Private Lives of Pippa Lee Circle of Friends Theodora Goes Wild The Visitor Jacknife The Aviator A Delicate Balance Wordplay The Tunnel of Love Desire Under the Elms Long Day's Journey into Night Everybody Wins The Long Days of Summer Birds of America Too Young to Marry The Swimmer Good Fences Reservation Road The Green Common Ground Revenge of the Stepford Wives Stoker Ah, Wilderness! Kaleidoscope The Family Stone The Baby-Sitters Club The Stranger Thirteen Days The Other Side of the Tracks All About Eve The Quiet Mystic Pizza Invitation Rachel Getting Married The Wedding Night Revolutionary Road When Every Day Was the Fourth of July Christmas Caper The Missiles of October Weeds House of Dust The Stepford Children The Midnight Game Indiana Jones and the Kingdom of the Crystal Skull Long Day's Journey into Night The Stepford Wives Hello I Must Be Going The Conjuring The Two Mr. Kissels Gothika Amistad U.F.O. Abduction The Lifeguard The Big Wedding The Other The Stepford Wives Another Earth Yours, Mine and Ours The Four Seasons The Ref Set Fire to the Stars Christmas in Connecticut The Man in the Gray Flannel Suit
87 works of art and 16 television programs
action count
action union
action filter_type
action find_reverse
entity Connecticut
relation narrative location
type work of art
action filter_type
action find_reverse
entity Connecticut
relation narrative location
type television program
[{'concept': 'work of art'}, 'narrative location', 'Connecticut'] [{'concept': 'television program'}, 'narrative location', 'Connecticut']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:narrative_location resource:Connecticut . ?r rdf:type ontology:work_of_art } UNION { ?r property:narrative_location resource:Connecticut . ?r rdf:type ontology:television_program } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q5070208
P180
Q82799 Q386724 Q1792379
USER
How many names are expressed in around the same number of works and art genres as kangaroo ?
(c(Q386724)|c(Q1792379),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q5070208
relation P180
type Q386724
type Q1792379
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?h WHERE { VALUES ( ?l ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } . ?g rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P180 resource:Q5070208 . { { ?z rdf:type ontology:Q386724 } UNION { ?z rdf:type ontology:Q1792379 } } } } . FILTER ( ?a = ?u ) }
kangaroo
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity kangaroo
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?h WHERE { VALUES ( ?l ) { ( ontology:work ) ( ontology:art_genre ) } . ?g rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:depicts resource:kangaroo . { { ?z rdf:type ontology:work } UNION { ?z rdf:type ontology:art_genre } } } } . FILTER ( ?a = ?u ) }
[]
name work art genre
SYSTEM
52
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q386724)|c(Q1792379),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q5070208
relation P180
type Q386724
type Q1792379
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?h WHERE { VALUES ( ?l ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } . ?g rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P180 resource:Q5070208 . { { ?z rdf:type ontology:Q386724 } UNION { ?z rdf:type ontology:Q1792379 } } } } . FILTER ( ?a = ?u ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
52
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity kangaroo
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?h WHERE { VALUES ( ?l ) { ( ontology:work ) ( ontology:art_genre ) } . ?g rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:depicts resource:kangaroo . { { ?z rdf:type ontology:work } UNION { ?z rdf:type ontology:art_genre } } } } . FILTER ( ?a = ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3537778
P180
Q82799 Q386724 Q1792379
USER
And how about donkeys?
(c(Q386724)|c(Q1792379),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q3537778
relation P180
type Q386724
type Q1792379
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:P180 ?n . ?n rdf:type ontology:Q82799 . ?z rdf:type ontology:Q386724 } UNION { ?z property:P180 ?n . ?n rdf:type ontology:Q82799 . ?z rdf:type ontology:Q1792379 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P180 resource:Q3537778 . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?a = ?j ) }
donkeys
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity donkeys
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:depicts ?n . ?n rdf:type ontology:name . ?z rdf:type ontology:work } UNION { ?z property:depicts ?n . ?n rdf:type ontology:name . ?z rdf:type ontology:art_genre } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:depicts resource:donkeys . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:work ) ( ontology:art_genre ) } } } } . FILTER ( ?a = ?j ) }
[]
name work art genre
SYSTEM
52
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q386724)|c(Q1792379),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q3537778
relation P180
type Q386724
type Q1792379
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:P180 ?n . ?n rdf:type ontology:Q82799 . ?z rdf:type ontology:Q386724 } UNION { ?z property:P180 ?n . ?n rdf:type ontology:Q82799 . ?z rdf:type ontology:Q1792379 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P180 resource:Q3537778 . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?a = ?j ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
52
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity donkeys
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:depicts ?n . ?n rdf:type ontology:name . ?z rdf:type ontology:work } UNION { ?z property:depicts ?n . ?n rdf:type ontology:name . ?z rdf:type ontology:art_genre } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:depicts resource:donkeys . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:work ) ( ontology:art_genre ) } } } } . FILTER ( ?a = ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q779
P915
Q838948
USER
Which works of art were filmed at Connecticut ?
(c(Q838948),P915,Q779)
action filter_type
action find_reverse
entity Q779
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q779']
SELECT DISTINCT ?v WHERE { ?v property:P915 resource:Q779 . ?v rdf:type ontology:Q838948 }
Connecticut
action filter_type
action find_reverse
entity Connecticut
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Connecticut']
SELECT DISTINCT ?v WHERE { ?v property:filming_location resource:Connecticut . ?v rdf:type ontology:work_of_art }
[]
work of art
Q923925 Q507994 Q200299
SYSTEM
Sue X, The Hunt for Red October, All About Eve
Q1127424 Q7738119 Q1550962 Q1547262 Q791651 Q507994 Q472361 Q1064838 Q1475299 Q15039874 Q1984765 Q276299 Q117698 Q499639 Q7755589 Q200299 Q1168292 Q1170515 Q202028 Q1183268 Q7718657 Q7093261 Q1331243 Q15633859 Q1109085 Q4753356 Q2269586 Q378891 Q950721 Q567996 Q2349035 Q3466749 Q1754773 Q1229857 Q1545178 Q4907402 Q4450019 Q3105463 Q546917 Q196029 Q16458 Q923925 Q5564473 Q17317998 Q477624 Q106871 Q1553779 Q1372295 Q771857 Q1193138 Q1542041 Q898840 Q646806 Q182373 Q852963 Q1212768 Q6494308 Q59595 Q1365106 Q5708728 Q1181317 Q49903 Q14036428 Q247470 Q2060752 Q693721 Q16155267 Q7990958 Q2604288 Q1117613 Q610508 Q7860123 Q1145732 Q764639 Q642546 Q1382263 Q775923 Q228244 Q327214 Q6726708 Q736151 Q1196815 Q782734
(c(Q838948),P915,Q779)
action filter_type
action find_reverse
entity Q779
relation P915
type Q838948
[ANSWERS] were filmed at Connecticut
[{'concept': 'Q838948'}, 'P915', 'Q779']
SELECT DISTINCT ?v WHERE { ?v property:P915 resource:Q779 . ?v rdf:type ontology:Q838948 }
The Horse Whisperer The Green The Big Wedding Stanley & Iris Away We Go The Hunt for Red October Amistad The Family Stone Kissing Jessica Stein Those Who Wander The House of the Devil Revolutionary Road beyond the Mat Strangers on a Train The Other Side of the Tracks All About Eve Other People's Money Valley of the Dolls War of the Worlds Yours, Mine and Ours The Blood Bond One Summer Love Mystic Pizza The Battery College Road Trip And So It Goes Boomerang What Just Happened Parrish Another Earth The Effect of Gamma Rays on Man-in-the-Moon Marigolds The Horror of Party Beach A Mighty Wind Old Dogs The Object of My Affection Bikini Bloodbath The Innkeepers Gigantic Everybody's Fine Gimme Shelter The Sisterhood of the Traveling Pants 2 Sue X Girl in Progress Animal Righteous Kill Die Hard with a Vengeance The Lords of Flatbush The Private Lives of Pippa Lee The Life Before Her Eyes The Ice Storm It Happened to Jane Gentleman's Agreement Cannonball Run II Indiana Jones and the Kingdom of the Crystal Skull Confessions of a Shopaholic The Stepford Wives Last Days of the Coliseum Mr. Deeds Factory Girl Hello I Must Be Going Pistol Whipped All Good Things Life of Crime We Need to Talk About Kevin Afterschool Scenes from a Mall Boychoir What Alice Found Ragtime Rachel Getting Married The Lifeguard Tyler Perry Presents Peeples Sleepers The Stepford Wives Mona Lisa Smile Everybody Wins Rachel, Rachel The Accidental Husband Hope Springs Made for Each Other Birds of America The Swimmer Reservation Road
Sue X, The Hunt for Red October and All About Eve were filmed at Connecticut
Sue X The Hunt for Red October All About Eve
action filter_type
action find_reverse
entity Connecticut
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Connecticut']
SELECT DISTINCT ?v WHERE { ?v property:filming_location resource:Connecticut . ?v rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q923925 Q507994 Q200299
P136
Q1792379
USER
What can be considered as category for Sue X, The Hunt for Red October and All About Eve ?
(Q923925,P136,c(Q1792379)) (Q507994,P136,c(Q1792379)) (Q200299,P136,c(Q1792379))
action union
action filter_type
action find
entity Q923925
relation P136
type Q1792379
action filter_type
action find
entity Q507994
relation P136
type Q1792379
action filter_type
action find
entity Q200299
relation P136
type Q1792379
['Q923925', 'P136', {'concept': 'Q1792379'}] ['Q507994', 'P136', {'concept': 'Q1792379'}] ['Q200299', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Q923925 ) ( resource:Q507994 ) } . ?c property:P136 ?u }
Sue X The Hunt for Red October All About Eve
action union
action filter_type
action find
entity Sue X
relation genre
type art genre
action filter_type
action find
entity The Hunt for Red October
relation genre
type art genre
action filter_type
action find
entity All About Eve
relation genre
type art genre
['Sue X', 'genre', {'concept': 'art genre'}] ['The Hunt for Red October', 'genre', {'concept': 'art genre'}] ['All About Eve', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Sue_X ) ( resource:The_Hunt_for_Red_October ) } . ?c property:genre ?u }
[]
art genre
Q645928 Q1257444 Q1257444
SYSTEM
biographical film for 1st, film adaptation for 2nd, 3rd
Q645928 Q1257444 Q1257444 Q622291 Q188473 Q1257444 Q130232
(Q923925,P136,c(Q1792379)) (Q507994,P136,c(Q1792379)) (Q200299,P136,c(Q1792379))
action union
action filter_type
action find
entity Q923925
relation P136
type Q1792379
action filter_type
action find
entity Q507994
relation P136
type Q1792379
action filter_type
action find
entity Q200299
relation P136
type Q1792379
[ANSWERS]
['Q923925', 'P136', {'concept': 'Q1792379'}] ['Q507994', 'P136', {'concept': 'Q1792379'}] ['Q200299', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Q923925 ) ( resource:Q507994 ) } . ?c property:P136 ?u }
biographical film film adaptation film adaptation political thriller action film film adaptation drama film
Biographical film, film adaptation and film adaptation can be considered as category for Sue X, The Hunt for Red October and All About Eve
biographical film film adaptation film adaptation
action union
action filter_type
action find
entity Sue X
relation genre
type art genre
action filter_type
action find
entity The Hunt for Red October
relation genre
type art genre
action filter_type
action find
entity All About Eve
relation genre
type art genre
['Sue X', 'genre', {'concept': 'art genre'}] ['The Hunt for Red October', 'genre', {'concept': 'art genre'}] ['All About Eve', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Sue_X ) ( resource:The_Hunt_for_Red_October ) } . ?c property:genre ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q923925
P86
Q502895
USER
Who composed Sue X ?
(Q923925,P86,c(Q502895))
action filter_type
action find
entity Q923925
relation P86
type Q502895
['Q923925', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q923925 property:P86 ?f }
Sue X
action filter_type
action find
entity Sue X
relation composer
type common name
['Sue X', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:Sue_X property:composer ?f }
[]
common name
Q967230
SYSTEM
Terence Blanchard
Q967230
(Q923925,P86,c(Q502895))
action filter_type
action find
entity Q923925
relation P86
type Q502895
[ANSWER] composed Sue X
['Q923925', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q923925 property:P86 ?f }
Terence Blanchard
Terence Blanchard composed Sue X
Terence Blanchard
action filter_type
action find
entity Sue X
relation composer
type common name
['Sue X', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:Sue_X property:composer ?f }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q942149
Q502895
USER
And what about La Chismosa?
(Q942149,P86,c(Q502895))
action filter_type
action find
entity Q942149
relation P86
type Q502895
['Q942149', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q942149 property:P86 ?a . ?a rdf:type ontology:Q502895 }
La Chismosa
action filter_type
action find
entity La Chismosa
relation composer
type common name
['La Chismosa', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:La_Chismosa property:composer ?a . ?a rdf:type ontology:common_name }
[]
common name
Q16571237
SYSTEM
George Andreani
Q16571237
(Q942149,P86,c(Q502895))
action filter_type
action find
entity Q942149
relation P86
type Q502895
[ANSWER]
['Q942149', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q942149 property:P86 ?a . ?a rdf:type ontology:Q502895 }
George Andreani
George Andreani
action filter_type
action find
entity La Chismosa
relation composer
type common name
['La Chismosa', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:La_Chismosa property:composer ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q942149
P2554
Q502895
USER
Which person created the production designs of that work of art ?
(Q16571237,P2554,c(Q502895))
action filter_type
action find
entity Q942149
relation P2554
type Q502895
['Q16571237', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q942149 property:P2554 ?d . ?d rdf:type ontology:Q502895 }
La Chismosa
action filter_type
action find
entity La Chismosa
relation production designer
type common name
['George Andreani', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:La_Chismosa property:production_designer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q6108101
SYSTEM
Ricardo Conord
Q6108101
(Q16571237,P2554,c(Q502895))
action filter_type
action find
entity Q942149
relation P2554
type Q502895
[ANSWER] created the production designs of that work of art
['Q16571237', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q942149 property:P2554 ?d . ?d rdf:type ontology:Q502895 }
Ricardo Conord
Ricardo Conord created the production designs of that work of art
Ricardo Conord
action filter_type
action find
entity La Chismosa
relation production designer
type common name
['George Andreani', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:La_Chismosa property:production_designer ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
How many cinematic techniques had their voice dubbing done by atmost 5 people ?
(c(Q1001378),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 5
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?s ) WHERE { ?b property:P725 ?u . ?b rdf:type ontology:Q1001378 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?s <= 5 ) }
action count
action atmost
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 5
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?s ) WHERE { ?b property:voice_actor ?u . ?b rdf:type ontology:cinematic_technique . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?s <= 5 ) }
[]
common name cinematic technique
SYSTEM
24
Q656998 Q2388260 Q21079862 Q27229786 Q562140 Q221679 Q192212 Q23647031 Q908816 Q3623997 Q4096274 Q655133 Q2615381 Q170035 Q2613318 Q223217 Q6739642 Q15709928 Q14545073 Q467678 Q656396 Q187266 Q15975680 Q104905
(c(Q1001378),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 5
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?s ) WHERE { ?b property:P725 ?u . ?b rdf:type ontology:Q1001378 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?s <= 5 ) }
Garfield's Pet Force The Humpbacked Horse Cars 3 The Animated Adventures of Tom Sawyer Yobi, the Five Tailed Fox Meet the Robinsons Cars 2 Batman: The Killing Joke The Secret of Kells FernGully 2: The Magical Rescue The Bremen Town Musicians Treasure Island Korgoth of Barbaria Ratatouille Garfield's Fun Fest The Lion King 1½ Making Stars Tríd an Stoirm 1912 film The Little Mermaid II: Return to the Sea Mickey's Magical Christmas: Snowed in at the House of Mouse Toy Story 2 Tamako Love Story WALL•E
24
action count
action atmost
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 5
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?s ) WHERE { ?b property:voice_actor ?u . ?b rdf:type ontology:cinematic_technique . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?s <= 5 ) }
[]