Simple Question (Direct)
Simple Question
Q5233121
P21
Q290
USER
Which sex does David Dunn possess ?
(Q5233121,P21,c(Q290))
action filter_type
action find
entity Q5233121
relation P21
type Q290
['Q5233121', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q5233121 property:P21 ?d }
David Dunn
action filter_type
action find
entity David Dunn
relation gender
type sex
['David Dunn', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:David_Dunn property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5233121,P21,c(Q290))
action filter_type
action find
entity Q5233121
relation P21
type Q290
David Dunn possesses [ANSWER]
['Q5233121', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q5233121 property:P21 ?d }
male
David Dunn possesses male
male
action filter_type
action find
entity David Dunn
relation gender
type sex
['David Dunn', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:David_Dunn property:gender ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5233121
P106
Q12737077
USER
Which occupation has David Dunn as his/her 's career ?
(Q5233121,P106,c(Q12737077))
action filter_type
action find
entity Q5233121
relation P106
type Q12737077
['Q5233121', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q5233121 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
David Dunn
action filter_type
action find
entity David Dunn
relation occupation
type occupation
['David Dunn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:David_Dunn property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q5233121,P106,c(Q12737077))
action filter_type
action find
entity Q5233121
relation P106
type Q12737077
As [ANSWER] has David Dunn as his/her 's career
['Q5233121', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q5233121 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
American football player
As American football player has David Dunn as his/her 's career
American football player
action filter_type
action find
entity David Dunn
relation occupation
type occupation
['David Dunn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:David_Dunn property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the patron saints of approximately 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:P417 ?v . ?v rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 } GROUP BY ?v } . FILTER ( ?t = 2 ) }
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:patron_saint ?v . ?v rdf:type ontology:common_name . ?g rdf:type ontology:occupation } GROUP BY ?v } . FILTER ( ?t = 2 ) }
[]
common name occupation
SYSTEM
10
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:P417 ?v . ?v rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 } GROUP BY ?v } . FILTER ( ?t = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
10
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:patron_saint ?v . ?v rdf:type ontology:common_name . ?g rdf:type ontology:occupation } GROUP BY ?v } . FILTER ( ?t = 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1274459 Q5233121
P27
Q15617994
USER
Which administrative territories are David Dunn and Hugo León Ferrer a civilian of ?
AND((Q5233121,P27,c(Q15617994)), (Q1274459,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5233121
relation P27
action find
entity Q1274459
relation P27
type Q15617994
{'AND': [['Q5233121', 'P27', {'concept': 'Q15617994'}], ['Q1274459', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q1274459 property:P27 ?b . resource:Q5233121 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Hugo León Ferrer David Dunn
action filter_type
action intersection
action find
entity David Dunn
relation country of citizenship
action find
entity Hugo León Ferrer
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['David Dunn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hugo León Ferrer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Hugo_León_Ferrer property:country_of_citizenship ?b . resource:David_Dunn property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q5233121,P27,c(Q15617994)), (Q1274459,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5233121
relation P27
action find
entity Q1274459
relation P27
type Q15617994
The [ANSWER] is David Dunn and Hugo León Ferrer a civilian of
{'AND': [['Q5233121', 'P27', {'concept': 'Q15617994'}], ['Q1274459', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q1274459 property:P27 ?b . resource:Q5233121 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
The United States of America is David Dunn and Hugo León Ferrer a civilian of
United States of America
action filter_type
action intersection
action find
entity David Dunn
relation country of citizenship
action find
entity Hugo León Ferrer
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['David Dunn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hugo León Ferrer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Hugo_León_Ferrer property:country_of_citizenship ?b . resource:David_Dunn property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q35236
P6
Q502895
USER
Is Herbert Hoover the head of government of that administrative territory ?
(Q30,P6,Q35236)
action is_in
entity Q35236
action find
entity Q30
relation P6
['Q30', 'P6', 'Q35236']
ASK WHERE { resource:Q30 property:P6 resource:Q35236 }
United States of America Herbert Hoover
action is_in
entity Herbert Hoover
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Herbert Hoover']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Herbert_Hoover }
[]
common name
SYSTEM
YES
(Q30,P6,Q35236)
action is_in
entity Q35236
action find
entity Q30
relation P6
[ANSWER]
['Q30', 'P6', 'Q35236']
ASK WHERE { resource:Q30 property:P6 resource:Q35236 }
Yes
action is_in
entity Herbert Hoover
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Herbert Hoover']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Herbert_Hoover }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P740
Q2088357
USER
What were formed at that administrative territory ?
action filter_type
action find_reverse
entity Q30
relation P740
type Q2088357
SELECT DISTINCT ?x WHERE { ?x property:P740 resource:Q30 . ?x rdf:type ontology:Q2088357 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation location of formation
type musical ensemble
SELECT DISTINCT ?x WHERE { ?x property:location_of_formation resource:United_States_of_America . ?x rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q7882730 Q3884994 Q4641509
SYSTEM
Uncle Earl, Orbs, 5uu's
Q5694915 Q3884994 Q7655689 Q7716528 Q6944145 Q5576916 Q1192331 Q4928652 Q6791483 Q7849390 Q7728233 Q8058082 Q16948929 Q15053521 Q7882730 Q18890163 Q15053721 Q6915308 Q5243188 Q1068668 Q7314078 Q5896523 Q7917301 Q5296139 Q1105391 Q7281382 Q7730441 Q736088 Q6108301 Q3366152 Q7727847 Q5976579 Q20685658 Q15052688 Q2498349 Q2659464 Q8021590 Q7670185 Q4641509 Q5248638 Q18691688 Q4703520 Q4825342 Q5477178 Q825290 Q7667861 Q2380239 Q1638376 Q3090763 Q1283636 Q7573767 Q580121 Q3522784 Q1290491 Q4838375 Q3776709 Q1537728 Q2529057 Q2287627 Q2267644 Q7764655 Q1187591 Q981129 Q2453209 Q7828067 Q5021558 Q7887778 Q17183679 Q3329746 Q7024633 Q7769190 Q6845805 Q7742945 Q949271 Q13534676 Q4822463 Q5223342 Q6991127 Q16949045 Q6872319 Q16248746 Q15053782 Q3027332 Q1295759 Q7816036 Q15044592
action filter_type
action find_reverse
entity Q30
relation P740
type Q2088357
[ANSWERS] were formed at that administrative territory
SELECT DISTINCT ?x WHERE { ?x property:P740 resource:Q30 . ?x rdf:type ontology:Q2088357 }
Heavens Orbs Sweethead The Bens Mutual Admiration Society Godspeed Institute Blu & Exile Matthews, Wright & King Tsar The Crownsmen Young Dubliners Longstocking The John Popper Project Uncle Earl Art of Anarchy Herod (band) Mosaic Daylight Division R. Crumb & His Cheap Suit Serenaders Replicator Honkytonk Homeslice Vaughan Mason & Crew Donita Sparks and the Stellar Moments CocoRosie Radius The Dixie Bee-Liners Wild Orchid JJ DOOM Monsters of Folk The Court & Spark I Can Make a Mess Like Nobody's Business Stay Human Ashes Of Ares Cosa Brava Ashes Divide Willie Isz TGT 5uu's Debu Humanfolk Al B. Rich Australis Foxhole Jonathan Davis and the SFA T-Squad Madison Park Iris Full Blown Rose Eden's Crush Sparrow Quartet Charred Walls of the Damned The Soultronics The Flirts Baby O Gridlock Goon Moon The Pierces Pride & Glory Rock Star Supernova The Skull The Network Juliette and the Licks Fanny Total Slacker Call Me No One United Forces Knifefight Cul de Sac Nice & Wild The Tic Tok Men Mike & Brenda Sutton The Jammers Eggs over Easy Scar the Martyr Aurora Dark New Day Nemesis Los Fabulocos Mirabilis K² Slave to the System Die Sektor Planet X Tom Gurl Four Bubbles & Cheesecake
Uncle Earl, Orbs and 5uu's were formed at that administrative territory
Uncle Earl Orbs 5uu's
action filter_type
action find_reverse
entity United States of America
relation location of formation
type musical ensemble
SELECT DISTINCT ?x WHERE { ?x property:location_of_formation resource:United_States_of_America . ?x rdf:type ontology:musical_ensemble }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P463
Q502895
USER
How many people are a member of that musical ensemble ?
(c(Q502895),P463,Q7882730)
[{'concept': 'Q502895'}, 'P463', 'Q7882730']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P463 resource:Q7882730 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'member of', 'Uncle Earl']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:member_of resource:Uncle_Earl . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q4641509
SYSTEM
Did you mean 5uu's ?
(c(Q502895),P463,Q7882730) (c(Q502895),P463,Q3884994) (c(Q502895),P463,Q4641509)
[ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q7882730'] [{'concept': 'Q502895'}, 'P463', 'Q3884994'] [{'concept': 'Q502895'}, 'P463', 'Q4641509']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P463 resource:Q7882730 . ?z rdf:type ontology:Q502895 }
Did you mean 5uu's ?
5uu's
[{'concept': 'common name'}, 'member of', 'Uncle Earl'] [{'concept': 'common name'}, 'member of', 'Orbs'] [{'concept': 'common name'}, 'member of', "5uu's"]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:member_of resource:Uncle_Earl . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Uncle Earl. Could you tell me the answer for that?
(c(Q502895),P463,Q7882730)
Q7882730
[{'concept': 'Q502895'}, 'P463', 'Q7882730']
[{'concept': 'common name'}, 'member of', 'Uncle Earl']
[]
SYSTEM
6
Q7490072 Q4980847 Q6327580 Q3603703 Q6438092 Q7299302
(c(Q502895),P463,Q7882730)
[ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q7882730']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P463 resource:Q7882730 . ?z rdf:type ontology:Q502895 }
Sharon Gilchrist Bryn Davies KC Groves Abigail Washburn Kristin Andreassen Rayna Gellert
6
[{'concept': 'common name'}, 'member of', 'Uncle Earl']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:member_of resource:Uncle_Earl . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P737
Q2088357 Q502895 Q215380
USER
How many musical ensembles had an influence on around 1 people and bands ?
(c(Q502895)|c(Q215380),P737,c(Q2088357))
action count
action approx
action union
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q502895
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q215380
value 1
[[{'concept': 'Q502895'}, {'concept': 'Q215380'}], 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { VALUES ( ?p ) { ( ontology:Q215380 ) ( ontology:Q502895 ) } . ?g rdf:type ?p } GROUP BY ?t } . FILTER ( ?y = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type common name
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type band
value 1
[[{'concept': 'common name'}, {'concept': 'band'}], 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { VALUES ( ?p ) { ( ontology:band ) ( ontology:common_name ) } . ?g rdf:type ?p } GROUP BY ?t } . FILTER ( ?y = 1 ) }
[]
musical ensemble common name band
SYSTEM
46
Q17140 Q2165544 Q72608 Q19057 Q1040688 Q1786810 Q651231 Q530362 Q40586 Q190155 Q910170 Q667389 Q44190 Q212168 Q45188 Q158895 Q214039 Q300602 Q1261885 Q153056 Q645639 Q208767 Q408139 Q189382 Q229496 Q1428959 Q909810 Q44892 Q751814 Q191352 Q369108 Q192983 Q1154614 Q2164036 Q1412029 Q211526 Q184386 Q283835 Q530863 Q482477 Q483407 Q1027165 Q188464 Q15613707 Q2654896 Q552377
(c(Q502895)|c(Q215380),P737,c(Q2088357))
action count
action approx
action union
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q502895
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q215380
value 1
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q215380'}], 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { VALUES ( ?p ) { ( ontology:Q215380 ) ( ontology:Q502895 ) } . ?g rdf:type ?p } GROUP BY ?t } . FILTER ( ?y = 1 ) }
Backstreet Boys The Tubes Big Star The Specials Foggy Mountain Boys Lords of Acid Boyz II Men The Mothers of Invention Gipsy Kings Van Halen Mongol800 The Pretenders Radiohead The Shadows Coldplay Helloween Beastie Boys A Tribe Called Quest GusGus Destiny's Child Main Source The Stooges Airbourne King Crimson 3OH!3 Flipper Leningrad Kraftwerk The Sisters of Mercy Portishead Scred Connexion TVXQ Dirty Projectors Young Marble Giants Carter Family The Byrds Yes Carcass Ange Blink-182 Ramones Three 6 Mafia Pixies Yellow Claw Be-Bop Deluxe Diamond Head
46
action count
action approx
action union
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type common name
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type band
value 1
[[{'concept': 'common name'}, {'concept': 'band'}], 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { VALUES ( ?p ) { ( ontology:band ) ( ontology:common_name ) } . ?g rdf:type ?p } GROUP BY ?t } . FILTER ( ?y = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P737
Q2088357 Q215380
USER
Which bands were influenced by around 2 musical ensembles ?
(c(Q215380),P737,c(Q2088357))
action approx
action find_tuple_counts
relation P737
type Q215380
type Q2088357
value 2
[{'concept': 'Q215380'}, 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?n ) WHERE { ?l property:P737 ?x . ?l rdf:type ontology:Q215380 . ?x rdf:type ontology:Q2088357 } GROUP BY ?l } . FILTER ( ?n = 2 ) }
action approx
action find_tuple_counts
relation influenced by
type band
type musical ensemble
value 2
[{'concept': 'band'}, 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?n ) WHERE { ?l property:influenced_by ?x . ?l rdf:type ontology:band . ?x rdf:type ontology:musical_ensemble } GROUP BY ?l } . FILTER ( ?n = 2 ) }
[]
musical ensemble band
Q11649
SYSTEM
Nirvana
Q11649
(c(Q215380),P737,c(Q2088357))
action approx
action find_tuple_counts
relation P737
type Q215380
type Q2088357
value 2
[ANSWER] was influenced by around 2 musical ensembles
[{'concept': 'Q215380'}, 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?n ) WHERE { ?l property:P737 ?x . ?l rdf:type ontology:Q215380 . ?x rdf:type ontology:Q2088357 } GROUP BY ?l } . FILTER ( ?n = 2 ) }
Nirvana
Nirvana was influenced by around 2 musical ensembles
Nirvana
action approx
action find_tuple_counts
relation influenced by
type band
type musical ensemble
value 2
[{'concept': 'band'}, 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?n ) WHERE { ?l property:influenced_by ?x . ?l rdf:type ontology:band . ?x rdf:type ontology:musical_ensemble } GROUP BY ?l } . FILTER ( ?n = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P737
Q215380 Q502895 Q215380
USER
Which bands influenced less number of people and bands than that band ?
(c(Q502895)|c(Q215380),P737,c(Q215380))
action less
action union
action find_reverse_tuple_counts
relation P737
type Q215380
type Q502895
action find_reverse_tuple_counts
relation P737
type Q215380
type Q215380
action count
action filter_multi_types
action find_reverse
entity Q11649
relation P737
type Q502895
type Q215380
[[{'concept': 'Q502895'}, {'concept': 'Q215380'}], 'P737', {'concept': 'Q215380'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q502895 ) ( ontology:Q215380 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q215380 } } . ?v property:P737 resource:Q11649 } } . FILTER ( ?z < ?m ) }
action less
action union
action find_reverse_tuple_counts
relation influenced by
type band
type common name
action find_reverse_tuple_counts
relation influenced by
type band
type band
action count
action filter_multi_types
action find_reverse
entity Nirvana
relation influenced by
type common name
type band
[[{'concept': 'common name'}, {'concept': 'band'}], 'influenced by', {'concept': 'band'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:common_name ) ( ontology:band ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:band } } . ?v property:influenced_by resource:Nirvana } } . FILTER ( ?z < ?m ) }
[]
band common name band
Q101505 Q27593 Q11895
SYSTEM
Deep Purple, AC/DC, Guns N’ Roses
Q733159 Q329270 Q464476 Q5807252 Q101505 Q180598 Q504464 Q27593 Q11895 Q124147
(c(Q502895)|c(Q215380),P737,c(Q215380))
action less
action union
action find_reverse_tuple_counts
relation P737
type Q215380
type Q502895
action find_reverse_tuple_counts
relation P737
type Q215380
type Q215380
action count
action filter_multi_types
action find_reverse
entity Q11649
relation P737
type Q502895
type Q215380
[ANSWERS] influenced less number of people and bands than that band
[[{'concept': 'Q502895'}, {'concept': 'Q215380'}], 'P737', {'concept': 'Q215380'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q502895 ) ( ontology:Q215380 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q215380 } } . ?v property:P737 resource:Q11649 } } . FILTER ( ?z < ?m ) }
Crosby, Stills, Nash & Young Stone Temple Pilots Black Flag Dimitri Vegas & Like Mike Deep Purple The Smiths Pulp AC/DC Guns N’ Roses Scorpions
Deep Purple, AC/DC and Guns N’ Roses influenced less number of people and bands than that band
Deep Purple AC/DC Guns N’ Roses
action less
action union
action find_reverse_tuple_counts
relation influenced by
type band
type common name
action find_reverse_tuple_counts
relation influenced by
type band
type band
action count
action filter_multi_types
action find_reverse
entity Nirvana
relation influenced by
type common name
type band
[[{'concept': 'common name'}, {'concept': 'band'}], 'influenced by', {'concept': 'band'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:common_name ) ( ontology:band ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:band } } . ?v property:influenced_by resource:Nirvana } } . FILTER ( ?z < ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P85
Q484692
USER
Which is the national anthem of United States of America ?
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?k WHERE { resource:Q30 property:P85 ?k . ?k rdf:type ontology:Q484692 }
United States of America
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?k WHERE { resource:United_States_of_America property:anthem ?k . ?k rdf:type ontology:hymn }
[]
hymn
Q44696
SYSTEM
The Star-Spangled Banner
Q44696
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
The national anthem of United States of America is [ANSWER]
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?k WHERE { resource:Q30 property:P85 ?k . ?k rdf:type ontology:Q484692 }
The Star-Spangled Banner
The national anthem of United States of America is The Star-Spangled Banner
The Star-Spangled Banner
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?k WHERE { resource:United_States_of_America property:anthem ?k . ?k rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q948
Q484692
USER
And how about Tunisia?
(Q948,P85,c(Q484692))
action filter_type
action find
entity Q948
relation P85
type Q484692
['Q948', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?t WHERE { resource:Q948 property:P85 ?t . ?t rdf:type ontology:Q484692 }
Tunisia
action filter_type
action find
entity Tunisia
relation anthem
type hymn
['Tunisia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?t WHERE { resource:Tunisia property:anthem ?t . ?t rdf:type ontology:hymn }
[]
hymn
Q682679
SYSTEM
Humat Al Hima
Q682679
(Q948,P85,c(Q484692))
action filter_type
action find
entity Q948
relation P85
type Q484692
[ANSWER]
['Q948', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?t WHERE { resource:Q948 property:P85 ?t . ?t rdf:type ontology:Q484692 }
Humat Al Hima
Humat Al Hima
action filter_type
action find
entity Tunisia
relation anthem
type hymn
['Tunisia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?t WHERE { resource:Tunisia property:anthem ?t . ?t rdf:type ontology:hymn }
[]