Simple Question (Direct)
Simple Question
Q1271561
P58
Q502895
USER
Who served as the screenwriter for Water Rats ?
(Q1271561,P58,c(Q502895))
action filter_type
action find
entity Q1271561
relation P58
type Q502895
['Q1271561', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1271561 property:P58 ?a . ?a rdf:type ontology:Q502895 }
Water Rats
action filter_type
action find
entity Water Rats
relation screenwriter
type common name
['Water Rats', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Water_Rats property:screenwriter ?a . ?a rdf:type ontology:common_name }
[]
common name
Q7823020
SYSTEM
Tony Morphett
Q7823020
(Q1271561,P58,c(Q502895))
action filter_type
action find
entity Q1271561
relation P58
type Q502895
As [ANSWER] served as the screenwriter for Water Rats
['Q1271561', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1271561 property:P58 ?a . ?a rdf:type ontology:Q502895 }
Tony Morphett
As Tony Morphett served as the screenwriter for Water Rats
Tony Morphett
action filter_type
action find
entity Water Rats
relation screenwriter
type common name
['Water Rats', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Water_Rats property:screenwriter ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1271561
P162
Q502895
USER
Which person is the produced of Water Rats ?
(Q1271561,P162,c(Q502895))
action filter_type
action find
entity Q1271561
relation P162
type Q502895
['Q1271561', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1271561 property:P162 ?j . ?j rdf:type ontology:Q502895 }
Water Rats
action filter_type
action find
entity Water Rats
relation producer
type common name
['Water Rats', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Water_Rats property:producer ?j . ?j rdf:type ontology:common_name }
[]
common name
Q7693665
SYSTEM
Ted Roberts
Q7693665
(Q1271561,P162,c(Q502895))
action filter_type
action find
entity Q1271561
relation P162
type Q502895
[ANSWER] is the produced of Water Rats
['Q1271561', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1271561 property:P162 ?j . ?j rdf:type ontology:Q502895 }
Ted Roberts
Ted Roberts is the produced of Water Rats
Ted Roberts
action filter_type
action find
entity Water Rats
relation producer
type common name
['Water Rats', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Water_Rats property:producer ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7823020
P1412
Q34770
USER
Which language does Tony Morphett speak in ?
(Q7823020,P1412,c(Q34770))
action filter_type
action find
entity Q7823020
relation P1412
type Q34770
['Q7823020', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q7823020 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Tony Morphett
action filter_type
action find
entity Tony Morphett
relation languages spoken, written or signed
type language
['Tony Morphett', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Tony_Morphett property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q7823020,P1412,c(Q34770))
action filter_type
action find
entity Q7823020
relation P1412
type Q34770
Tony Morphett speaks German [ANSWER]
['Q7823020', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q7823020 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
English
Tony Morphett speaks German English
English
action filter_type
action find
entity Tony Morphett
relation languages spoken, written or signed
type language
['Tony Morphett', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Tony_Morphett property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q968679 Q27118795
P361
Q5962346
USER
Is that language a component of Terza rima and fourth generation of Pokémon ?
(Q1860,P361,Q968679) (Q1860,P361,Q27118795)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q968679
relation P361
action find_reverse
entity Q27118795
relation P361
['Q1860', 'P361', 'Q968679'] ['Q1860', 'P361', 'Q27118795']
ASK WHERE { resource:Q1860 property:P361 resource:Q968679 . resource:Q1860 property:P361 resource:Q27118795 }
English Terza rima fourth generation of Pokémon
action is_in
entity English
action intersection
action find_reverse
entity Terza rima
relation part of
action find_reverse
entity fourth generation of Pokémon
relation part of
['English', 'part of', 'Terza rima'] ['English', 'part of', 'fourth generation of Pokémon']
ASK WHERE { resource:English property:part_of resource:Terza_rima . resource:English property:part_of resource:fourth_generation_of_Pokémon }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q968679) (Q1860,P361,Q27118795)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q968679
relation P361
action find_reverse
entity Q27118795
relation P361
[ANSWER]
['Q1860', 'P361', 'Q968679'] ['Q1860', 'P361', 'Q27118795']
ASK WHERE { resource:Q1860 property:P361 resource:Q968679 . resource:Q1860 property:P361 resource:Q27118795 }
No
action is_in
entity English
action intersection
action find_reverse
entity Terza rima
relation part of
action find_reverse
entity fourth generation of Pokémon
relation part of
['English', 'part of', 'Terza rima'] ['English', 'part of', 'fourth generation of Pokémon']
ASK WHERE { resource:English property:part_of resource:Terza_rima . resource:English property:part_of resource:fourth_generation_of_Pokémon }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q642878 Q1271561
P1080 P1441
Q6619679
USER
Which fictional humanoids appear in Water Rats or belong to Marvel Cinematic Universe ?
OR((c(Q6619679),P1441,Q1271561), (c(Q6619679),P1080,Q642878))
action filter_type
action union
action find_reverse
entity Q1271561
relation P1441
action find_reverse
entity Q642878
relation P1080
type Q6619679
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q1271561'], [{'concept': 'Q6619679'}, 'P1080', 'Q642878']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P1441 resource:Q1271561 } UNION { ?y property:P1080 resource:Q642878 } } . ?y rdf:type ontology:Q6619679 }
Marvel Cinematic Universe Water Rats
action filter_type
action union
action find_reverse
entity Water Rats
relation present in work
action find_reverse
entity Marvel Cinematic Universe
relation from fictional universe
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Water Rats'], [{'concept': 'fictional humanoid'}, 'from fictional universe', 'Marvel Cinematic Universe']]}
SELECT DISTINCT ?y WHERE { { { ?y property:present_in_work resource:Water_Rats } UNION { ?y property:from_fictional_universe resource:Marvel_Cinematic_Universe } } . ?y rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q23895063 Q24276097 Q23895076 Q24027972 Q24083294 Q27067866 Q24004905 Q24510074 Q24022098 Q27670314
SYSTEM
Some of them are Natasha Romanoff / Black Widow, Dave, Justin Hammer, Skye, Jasper Sitwell, Bartender, T'Chaka, School principal, Steve Rogers, Daniel Drumm
Q24046150 Q24022542 Q24073725 Q24068355 Q23900407 Q26261996 Q27670356 Q23894967 Q24510074 Q23894605 Q23852015 Q23894608 Q24073696 Q24040958 Q24276119 Q24040968 Q27057247 Q23851900 Q23900470 Q24050117 Q27057203 Q23900437 Q24022098 Q24027982 Q24034722 Q27468455 Q24073681 Q24276100 Q24027859 Q27670335 Q24083294 Q23842323 Q27057298 Q27067859 Q24027376 Q24265423 Q21042559 Q23836618 Q24040935 Q24050133 Q27067914 Q23842775 Q24073715 Q24073719 Q24068411 Q24022345 Q24040742 Q24026688 Q24068252 Q24068383 Q24068387 Q20979384 Q24004885 Q27045831 Q24027955 Q24276086 Q26268873 Q23851951 Q23842703 Q23895063 Q23991694 Q24027972 Q24022457 Q27670318 Q24034679 Q27670314 Q24068405 Q24068402 Q24068241 Q23991129 Q24068397 Q23900446 Q24068391 Q24276092 Q24027486 Q24276097 Q26758863 Q27670381 Q27670387 Q24040913 Q27670389 Q24046106 Q23895076 Q27057308 Q24045752 Q27067866 Q24026703 Q27067863 Q4717831 Q26809707 Q24040949 Q27670364 Q23900364 Q27092482 Q26268850 Q23842987 Q26268859 Q24043637 Q23852160 Q24068213 Q27101792 Q27147335 Q24046118 Q23842900 Q24073665 Q24045741 Q24045748 Q27147410 Q27670370 Q23900377 Q27670374 Q24275986 Q24083312 Q23991271 Q23750571 Q24050065 Q23852090 Q24068218 Q24004905 Q24068211 Q27062173 Q24068214 Q27670340 Q24200251 Q24275991 Q27670271 Q23836625
OR((c(Q6619679),P1441,Q1271561), (c(Q6619679),P1080,Q642878))
action filter_type
action union
action find_reverse
entity Q1271561
relation P1441
action find_reverse
entity Q642878
relation P1080
type Q6619679
[ANSWERS] appear in Water Rats or belong to Marvel Cinematic Universe
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q1271561'], [{'concept': 'Q6619679'}, 'P1080', 'Q642878']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P1441 resource:Q1271561 } UNION { ?y property:P1080 resource:Q642878 } } . ?y rdf:type ontology:Q6619679 }
Heimdall Wanda Maximoff / Scarlet Witch Jack French Photographer Christine Everhart Phineas Mason Dr. Weiss Tony Stark / Iron Man School principal Michelle Sterns Lab Soldier Flash Thompson Strawberry Vendor FedEx Driver Castillo Karpov Mitchell Carson Female Medical Assistant Happy Hogan Bruce Banner / Hulk Cassie Lang Senator Stern Steve Rogers Leo Fitz Dr. Stephen Strange Claire Template Chess Roberts Kurt Carol Danvers / Captain Marvel Nurse Billy Jasper Sitwell BOPE Officer Car Driver Pym Tech Gate Guard Thaddeus Ross Hank Pym Darcy Lewis Gunner Maria Stark Hope van Dyne / Wasp Janet van Dyne / Wasp Handsome Soldier Hammer Expo Tech French Waiter Rebeka Sam Wilson / Falcon Brock Rumlow / Crossbones Clint Barton / Hawkeye Russian Newscaster General Meade 10 Rings Gangster Jemma Simmons T'Challa / Black Panther M'Baku / Man-Ape Melinda May Luis Okoye Humvee Driver Medic Soldier Natasha Romanoff / Black Widow Bucky Barnes / Winter Soldier Skye Zemo Dr. Patel Peggy Carter Daniel Drumm Expo Cop Rebecca Expo Fan Peter Parker / Spider-Man AV Operator Howard Stark Anton Vanko Maggie Sharon Carter / Agent 13 Dave Ayo Mugger Kamar-Taj Librarian Everett K. Ross Bullet Patient's Wife Jane Foster Justin Hammer Dale Wong Bartender Scott Lang / Ant-Man Writer Alex St. Clare Liz Allan Miriam Physical Therapist Ivan Vanko Ulysses Klaue Erik Killmonger Ross's Aide Nakia Mordo Hopscotch Girl Detective Lemieux Pietro Maximoff / Quicksilver Zuri Loki Command Van Soldier Bambi Arbogast The Ancient One Dr. Nicodemus West W'Kabi Concerned Doctor Nick Fury Reluctant Surgeon Darren Cross Isabela Alvarez May Parker Major Allen Peter Quill / Star-Lord Large Woman Security Force #2 T'Chaka U.S. Marshal Robbie Reyes / Ghost Rider Security Force #1 Dr. Garrison Johann Schmidt Paxton Tina Minoru Little Boy
Natasha Romanoff / Black Widow, Dave, Justin Hammer, Skye, Jasper Sitwell, Bartender, T'Chaka, School principal, Steve Rogers and Daniel Drumm appear in Water Rats or belong to Marvel Cinematic Universe
Natasha Romanoff / Black Widow Dave Justin Hammer Skye Jasper Sitwell Bartender T'Chaka School principal Steve Rogers Daniel Drumm
action filter_type
action union
action find_reverse
entity Water Rats
relation present in work
action find_reverse
entity Marvel Cinematic Universe
relation from fictional universe
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Water Rats'], [{'concept': 'fictional humanoid'}, 'from fictional universe', 'Marvel Cinematic Universe']]}
SELECT DISTINCT ?y WHERE { { { ?y property:present_in_work resource:Water_Rats } UNION { ?y property:from_fictional_universe resource:Marvel_Cinematic_Universe } } . ?y rdf:type ontology:fictional_humanoid }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q15416 Q3895768 Q502895
USER
Which television programs are around 1 fictional locations or people shown in ?
(c(Q3895768)|c(Q502895),P1441,c(Q15416))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q15416
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q15416
type Q502895
value 1
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?v WHERE { { ?y property:P1441 ?v . ?v rdf:type ontology:Q15416 . ?y rdf:type ontology:Q3895768 } UNION { ?y property:P1441 ?v . ?v rdf:type ontology:Q15416 . ?y rdf:type ontology:Q502895 } } GROUP BY ?v } . FILTER ( ?n = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation present in work
type television program
type fictional location
action find_reverse_tuple_counts
relation present in work
type television program
type common name
value 1
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?v WHERE { { ?y property:present_in_work ?v . ?v rdf:type ontology:television_program . ?y rdf:type ontology:fictional_location } UNION { ?y property:present_in_work ?v . ?v rdf:type ontology:television_program . ?y rdf:type ontology:common_name } } GROUP BY ?v } . FILTER ( ?n = 1 ) }
[]
television program fictional location common name
Q7751721 Q193462 Q3577037
SYSTEM
The Missiles of October, Gilmore Girls, The West Wing
Q1217700 Q19848664 Q193462 Q237072 Q171254 Q201358 Q185059 Q908708 Q6012162 Q526035 Q785025 Q3577037 Q1585857 Q7751721 Q218035 Q276180 Q630496 Q1249404
(c(Q3895768)|c(Q502895),P1441,c(Q15416))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q15416
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q15416
type Q502895
value 1
[ANSWERS] are around 1 fictional locations or people shown in
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?v WHERE { { ?y property:P1441 ?v . ?v rdf:type ontology:Q15416 . ?y rdf:type ontology:Q3895768 } UNION { ?y property:P1441 ?v . ?v rdf:type ontology:Q15416 . ?y rdf:type ontology:Q502895 } } GROUP BY ?v } . FILTER ( ?n = 1 ) }
The Ten Commandments StarTalk Gilmore Girls Battlestar Galactica Sons of Anarchy The Flintstones Days of our Lives Neighbours In the Flesh The Andy Griffith Show Fantastic Four The West Wing Hollyoaks The Missiles of October Parks and Recreation The Newsroom Abraham Mayberry R.F.D.
The Missiles of October, Gilmore Girls and The West Wing are around 1 fictional locations or people shown in
The Missiles of October Gilmore Girls The West Wing
action approx
action union
action find_reverse_tuple_counts
relation present in work
type television program
type fictional location
action find_reverse_tuple_counts
relation present in work
type television program
type common name
value 1
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?v WHERE { { ?y property:present_in_work ?v . ?v rdf:type ontology:television_program . ?y rdf:type ontology:fictional_location } UNION { ?y property:present_in_work ?v . ?v rdf:type ontology:television_program . ?y rdf:type ontology:common_name } } GROUP BY ?v } . FILTER ( ?n = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3177580
P1445
Q15416 Q386724
USER
How many works were described in lesser number of television programs than The Walking Dead ?
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q3177580
relation P1445
type Q15416
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?v ) WHERE { ?l property:P1445 ?h . ?l rdf:type ontology:Q386724 . ?h rdf:type ontology:Q15416 } GROUP BY ?l } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:Q15416 . resource:Q3177580 property:P1445 ?z } } }
The Walking Dead
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type television program
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?v ) WHERE { ?l property:fictional_universe_described_in ?h . ?l rdf:type ontology:work . ?h rdf:type ontology:television_program } GROUP BY ?l } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:television_program . resource:The_Walking_Dead property:fictional_universe_described_in ?z } } }
[]
television program work
SYSTEM
3
Q15731902 Q11927 Q384426
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q3177580
relation P1445
type Q15416
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?v ) WHERE { ?l property:P1445 ?h . ?l rdf:type ontology:Q386724 . ?h rdf:type ontology:Q15416 } GROUP BY ?l } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:Q15416 . resource:Q3177580 property:P1445 ?z } } }
Aladdin media franchise Stargate Pirates of the Caribbean
3
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type television program
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?v ) WHERE { ?l property:fictional_universe_described_in ?h . ?l rdf:type ontology:work . ?h rdf:type ontology:television_program } GROUP BY ?l } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:television_program . resource:The_Walking_Dead property:fictional_universe_described_in ?z } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1203222
P1445
Q15416 Q386724
USER
And what about Shrek?
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q1203222
relation P1445
type Q15416
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?n ) WHERE { ?u property:P1445 ?t . ?t rdf:type ontology:Q15416 . ?u rdf:type ontology:Q386724 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Q1203222 property:P1445 ?w . ?w rdf:type ontology:Q15416 } } . FILTER ( ?n < ?m ) }
Shrek
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity Shrek
relation fictional universe described in
type television program
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?n ) WHERE { ?u property:fictional_universe_described_in ?t . ?t rdf:type ontology:television_program . ?u rdf:type ontology:work } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Shrek property:fictional_universe_described_in ?w . ?w rdf:type ontology:television_program } } . FILTER ( ?n < ?m ) }
[]
television program work
SYSTEM
4
Q15731902 Q11927 Q3177580 Q384426
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q1203222
relation P1445
type Q15416
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?n ) WHERE { ?u property:P1445 ?t . ?t rdf:type ontology:Q15416 . ?u rdf:type ontology:Q386724 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Q1203222 property:P1445 ?w . ?w rdf:type ontology:Q15416 } } . FILTER ( ?n < ?m ) }
Aladdin media franchise Stargate The Walking Dead Pirates of the Caribbean
4
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity Shrek
relation fictional universe described in
type television program
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?n ) WHERE { ?u property:fictional_universe_described_in ?t . ?t rdf:type ontology:television_program . ?u rdf:type ontology:work } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Shrek property:fictional_universe_described_in ?w . ?w rdf:type ontology:television_program } } . FILTER ( ?n < ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q193462
P86
Q502895
USER
Who wrote the music for Gilmore Girls ?
(Q193462,P86,c(Q502895))
action filter_type
action find
entity Q193462
relation P86
type Q502895
['Q193462', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q193462 property:P86 ?b . ?b rdf:type ontology:Q502895 }
Gilmore Girls
action filter_type
action find
entity Gilmore Girls
relation composer
type common name
['Gilmore Girls', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Gilmore_Girls property:composer ?b . ?b rdf:type ontology:common_name }
[]
common name
Q275185
SYSTEM
Sam Phillips
Q275185
(Q193462,P86,c(Q502895))
action filter_type
action find
entity Q193462
relation P86
type Q502895
The [ANSWER] wrote the music for Gilmore Girls
['Q193462', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q193462 property:P86 ?b . ?b rdf:type ontology:Q502895 }
Sam Phillips
The Sam Phillips wrote the music for Gilmore Girls
Sam Phillips
action filter_type
action find
entity Gilmore Girls
relation composer
type common name
['Gilmore Girls', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Gilmore_Girls property:composer ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do around 353 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 353
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:P1303 ?e . ?r rdf:type ontology:Q502895 . ?e rdf:type ontology:Q34379 } GROUP BY ?e } . FILTER ( ?k = 353 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 353
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:instrument ?e . ?r rdf:type ontology:common_name . ?e rdf:type ontology:musical_instrument } GROUP BY ?e } . FILTER ( ?k = 353 ) }
[]
musical instrument common name
SYSTEM
62
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 353
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:P1303 ?e . ?r rdf:type ontology:Q502895 . ?e rdf:type ontology:Q34379 } GROUP BY ?e } . FILTER ( ?k = 353 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 353
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:instrument ?e . ?r rdf:type ontology:common_name . ?e rdf:type ontology:musical_instrument } GROUP BY ?e } . FILTER ( ?k = 353 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q15416 Q1001378 Q5398426
USER
Which television programs are atleast 1 cinematic techniques or television series adapted from ?
(c(Q1001378)|c(Q5398426),P144,c(Q15416))
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q1001378
action find_reverse_tuple_counts
relation P144
type Q15416
type Q5398426
value 1
[[{'concept': 'Q1001378'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?r ) WHERE { { ?f property:P144 ?j . ?f rdf:type ontology:Q1001378 . ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q15416 . ?f rdf:type ontology:Q5398426 . ?f property:P144 ?j } } GROUP BY ?j } . FILTER ( ?r >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation based on
type television program
type cinematic technique
action find_reverse_tuple_counts
relation based on
type television program
type television series
value 1
[[{'concept': 'cinematic technique'}, {'concept': 'television series'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?r ) WHERE { { ?f property:based_on ?j . ?f rdf:type ontology:cinematic_technique . ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:television_program . ?f rdf:type ontology:television_series . ?f property:based_on ?j } } GROUP BY ?j } . FILTER ( ?r >= 1 ) }
[]
television program cinematic technique television series
Q812805 Q482482
SYSTEM
BeTipul, K-On!
Q812805 Q482482
(c(Q1001378)|c(Q5398426),P144,c(Q15416))
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q1001378
action find_reverse_tuple_counts
relation P144
type Q15416
type Q5398426
value 1
[ANSWERS] are atleast 1 cinematic techniques or television series adapted from
[[{'concept': 'Q1001378'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?r ) WHERE { { ?f property:P144 ?j . ?f rdf:type ontology:Q1001378 . ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q15416 . ?f rdf:type ontology:Q5398426 . ?f property:P144 ?j } } GROUP BY ?j } . FILTER ( ?r >= 1 ) }
BeTipul K-On!
BeTipul and K-On! are atleast 1 cinematic techniques or television series adapted from
BeTipul K-On!
action atleast
action union
action find_reverse_tuple_counts
relation based on
type television program
type cinematic technique
action find_reverse_tuple_counts
relation based on
type television program
type television series
value 1
[[{'concept': 'cinematic technique'}, {'concept': 'television series'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?r ) WHERE { { ?f property:based_on ?j . ?f rdf:type ontology:cinematic_technique . ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:television_program . ?f rdf:type ontology:television_series . ?f property:based_on ?j } } GROUP BY ?j } . FILTER ( ?r >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24050083 Q24022098
P1441
Q838948
USER
Which works of art are Steve Rogers or Groot shown in ?
OR((Q24022098,P1441,c(Q838948)), (Q24050083,P1441,c(Q838948)))
action filter_type
action union
action find
entity Q24022098
relation P1441
action find
entity Q24050083
relation P1441
type Q838948
{'OR': [['Q24022098', 'P1441', {'concept': 'Q838948'}], ['Q24050083', 'P1441', {'concept': 'Q838948'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q24022098 property:P1441 ?s } UNION { resource:Q24050083 property:P1441 ?s } } . ?s rdf:type ontology:Q838948 }
Groot Steve Rogers
action filter_type
action union
action find
entity Steve Rogers
relation present in work
action find
entity Groot
relation present in work
type work of art
{'OR': [['Steve Rogers', 'present in work', {'concept': 'work of art'}], ['Groot', 'present in work', {'concept': 'work of art'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Steve_Rogers property:present_in_work ?s } UNION { resource:Groot property:present_in_work ?s } } . ?s rdf:type ontology:work_of_art }
[]
work of art
Q182218 Q14171368 Q18407657 Q23780914 Q275120 Q20001199 Q1765358 Q23781155 Q5887360
SYSTEM
The Avengers, Avengers: Age of Ultron, Captain America: Civil War, Avengers: Infinity War, Captain America: The First Avenger, Guardians of the Galaxy Vol. 2, Captain America: The Winter Soldier, Untitled Avengers Movie, Guardians of the Galaxy
Q182218 Q14171368 Q18407657 Q23780914 Q275120 Q20001199 Q1765358 Q23781155 Q5887360
OR((Q24022098,P1441,c(Q838948)), (Q24050083,P1441,c(Q838948)))
action filter_type
action union
action find
entity Q24022098
relation P1441
action find
entity Q24050083
relation P1441
type Q838948
Steve Rogers or Groot are shown in [ANSWERS]
{'OR': [['Q24022098', 'P1441', {'concept': 'Q838948'}], ['Q24050083', 'P1441', {'concept': 'Q838948'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q24022098 property:P1441 ?s } UNION { resource:Q24050083 property:P1441 ?s } } . ?s rdf:type ontology:Q838948 }
The Avengers Avengers: Age of Ultron Captain America: Civil War Avengers: Infinity War Captain America: The First Avenger Guardians of the Galaxy Vol. 2 Captain America: The Winter Soldier Untitled Avengers Movie Guardians of the Galaxy
Steve Rogers or Groot are shown in The Avengers, Avengers: Age of Ultron, Captain America: Civil War, Avengers: Infinity War, Captain America: The First Avenger, Guardians of the Galaxy Vol. 2, Captain America: The Winter Soldier, Untitled Avengers Movie and Guardians of the Galaxy
The Avengers Avengers: Age of Ultron Captain America: Civil War Avengers: Infinity War Captain America: The First Avenger Guardians of the Galaxy Vol. 2 Captain America: The Winter Soldier Untitled Avengers Movie Guardians of the Galaxy
action filter_type
action union
action find
entity Steve Rogers
relation present in work
action find
entity Groot
relation present in work
type work of art
{'OR': [['Steve Rogers', 'present in work', {'concept': 'work of art'}], ['Groot', 'present in work', {'concept': 'work of art'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Steve_Rogers property:present_in_work ?s } UNION { resource:Groot property:present_in_work ?s } } . ?s rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q18407657
P1441
Q6619679 Q3895768
USER
How many fictional humanoids or fictional locations appear in Captain America: Civil War ?
(c(Q6619679),P1441,Q18407657) (c(Q3895768),P1441,Q18407657)
action count
action union
action filter_type
action find_reverse
entity Q18407657
relation P1441
type Q6619679
action filter_type
action find_reverse
entity Q18407657
relation P1441
type Q3895768
[{'concept': 'Q6619679'}, 'P1441', 'Q18407657'] [{'concept': 'Q3895768'}, 'P1441', 'Q18407657']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?t ) { ( ontology:Q6619679 ) ( ontology:Q3895768 ) } . ?k rdf:type ?t }
Captain America: Civil War
action count
action union
action filter_type
action find_reverse
entity Captain America: Civil War
relation present in work
type fictional humanoid
action filter_type
action find_reverse
entity Captain America: Civil War
relation present in work
type fictional location
[{'concept': 'fictional humanoid'}, 'present in work', 'Captain America: Civil War'] [{'concept': 'fictional location'}, 'present in work', 'Captain America: Civil War']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?t ) { ( ontology:fictional_humanoid ) ( ontology:fictional_location ) } . ?k rdf:type ?t }
[]
fictional humanoid fictional location
SYSTEM
64
Q26761002 Q26771565 Q24022542 Q24040968 Q24022457 Q24040949 Q26771605 Q23991271 Q26760974 Q23894967 Q26760321 Q23991129 Q23900446 Q26771620 Q24027486 Q26760999 Q23991694 Q26759592 Q26760561 Q26760993 Q24040958 Q26761607 Q26771595 Q26758865 Q26758884 Q26761640 Q24040935 Q26760328 Q26760958 Q26761595 Q24027376 Q26760979 Q26771631 Q26760976 Q24040913 Q24022345 Q24026703 Q24022098 Q26758645 Q24026688 Q24004905 Q26761024 Q26760944 Q24004885 Q26759605 Q26759584 Q23895040 Q26760988 Q26759603 Q26760312 Q26759589 Q26761615 Q26760337 Q26758873 Q24040742 Q26761610 Q26758877 Q26758893 Q23895063 Q26758890 Q26758863 Q26758896 Q26758859 Q26758894
(c(Q6619679),P1441,Q18407657) (c(Q3895768),P1441,Q18407657)
action count
action union
action filter_type
action find_reverse
entity Q18407657
relation P1441
type Q6619679
action filter_type
action find_reverse
entity Q18407657
relation P1441
type Q3895768
[ANSWER]
[{'concept': 'Q6619679'}, 'P1441', 'Q18407657'] [{'concept': 'Q3895768'}, 'P1441', 'Q18407657']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?t ) { ( ontology:Q6619679 ) ( ontology:Q3895768 ) } . ?k rdf:type ?t }
Teenage Girl Josef / Super Soldier #1 Wanda Maximoff / Scarlet Witch Karpov Zemo Miriam Super Soldier #3 May Parker Secretary Ross's Aide Tony Stark / Iron Man German Newscaster #1 Peter Parker / Spider-Man Howard Stark Super Soldier #4 Sharon Carter / Agent 13 M.I.T. Liaison Bucky Barnes / Winter Soldier Woman in Lobby #1 Busboy (Lagos) Hero Merc #4 FedEx Driver Stark's Assistant Super Soldier #2 Attaché GSG9 Task Force Pilot Zemo's Wife Maria Stark German Newscaster #2 Wakanda UN Staffer Gibson Thaddeus Ross Hero Merc #2 Super Soldier #5 Hero Merc #1 Everett K. Ross Sam Wilson / Falcon Scott Lang / Ant-Man Steve Rogers MRI Tech Clint Barton / Hawkeye T'Chaka Dr. Broussard Waiter (Lagos) T'Challa / Black Panther Delivery Truck Driver Custodian Jim Rhodes / War Machine Hero Merc #3 Woman in Lobby #2 Chinese Newscaster Funeral Director Cultural Attaché News Reporter Man at Kiosk Brock Rumlow / Crossbones Nurse GSG9 Task Force Gunner Raft Guard Natasha Romanoff / Black Widow German Innkeeper Ayo Barge Man #2 Vicar Barge Man #1
64
action count
action union
action filter_type
action find_reverse
entity Captain America: Civil War
relation present in work
type fictional humanoid
action filter_type
action find_reverse
entity Captain America: Civil War
relation present in work
type fictional location
[{'concept': 'fictional humanoid'}, 'present in work', 'Captain America: Civil War'] [{'concept': 'fictional location'}, 'present in work', 'Captain America: Civil War']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?t ) { ( ontology:fictional_humanoid ) ( ontology:fictional_location ) } . ?k rdf:type ?t }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1334300
P2079
Q2695280 Q838948
USER
How many technicss are used to fabricate less number of works of art than gilding ?
(c(Q838948),P2079,c(Q2695280))
action count
action less
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find_reverse
entity Q1334300
relation P2079
type Q838948
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P2079 ?q . ?d rdf:type ontology:Q838948 . ?q rdf:type ontology:Q2695280 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P2079 resource:Q1334300 . ?f rdf:type ontology:Q838948 } } . FILTER ( ?l < ?y ) }
gilding
action count
action less
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find_reverse
entity gilding
relation fabrication method
type work of art
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:fabrication_method ?q . ?d rdf:type ontology:work_of_art . ?q rdf:type ontology:technics } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:fabrication_method resource:gilding . ?f rdf:type ontology:work_of_art } } . FILTER ( ?l < ?y ) }
[]
technics work of art
SYSTEM
10
Q11750728 Q9363879 Q173242 Q204867 Q192047 Q752633 Q26265824 Q139106 Q133036 Q2657271
(c(Q838948),P2079,c(Q2695280))
action count
action less
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find_reverse
entity Q1334300
relation P2079
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P2079 ?q . ?d rdf:type ontology:Q838948 . ?q rdf:type ontology:Q2695280 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P2079 resource:Q1334300 . ?f rdf:type ontology:Q838948 } } . FILTER ( ?l < ?y ) }
Punching stamping woodcut technique zincography machining linocut technique chasing engraving lithography silvering
10
action count
action less
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find_reverse
entity gilding
relation fabrication method
type work of art
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:fabrication_method ?q . ?d rdf:type ontology:work_of_art . ?q rdf:type ontology:technics } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:fabrication_method resource:gilding . ?f rdf:type ontology:work_of_art } } . FILTER ( ?l < ?y ) }
[]