Simple Question (Direct)
Simple Question
Q2347323
P54
Q1194951
USER
Which national sports team is Silvino Gomes Soares a member of ?
(Q2347323,P54,c(Q1194951))
action filter_type
action find
entity Q2347323
relation P54
type Q1194951
['Q2347323', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1194951 . resource:Q2347323 property:P54 ?v }
Silvino Gomes Soares
action filter_type
action find
entity Silvino Gomes Soares
relation member of sports team
type national sports team
['Silvino Gomes Soares', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:national_sports_team . resource:Silvino_Gomes_Soares property:member_of_sports_team ?v }
[]
national sports team
Q330039
SYSTEM
Cape Verde national football team
Q330039
(Q2347323,P54,c(Q1194951))
action filter_type
action find
entity Q2347323
relation P54
type Q1194951
[ANSWER] is Silvino Gomes Soares a member of
['Q2347323', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1194951 . resource:Q2347323 property:P54 ?v }
Cape Verde national football team
Cape Verde national football team is Silvino Gomes Soares a member of
Cape Verde national football team
action filter_type
action find
entity Silvino Gomes Soares
relation member of sports team
type national sports team
['Silvino Gomes Soares', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:national_sports_team . resource:Silvino_Gomes_Soares property:member_of_sports_team ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2347323
P106
Q12737077
USER
What does that person do for a living ?
(Q330039,P106,c(Q12737077))
action filter_type
action find
entity Q2347323
relation P106
type Q12737077
['Q330039', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2347323 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Silvino Gomes Soares
action filter_type
action find
entity Silvino Gomes Soares
relation occupation
type occupation
['Cape Verde national football team', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Silvino_Gomes_Soares property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q330039,P106,c(Q12737077))
action filter_type
action find
entity Q2347323
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q330039', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2347323 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Silvino Gomes Soares
relation occupation
type occupation
['Cape Verde national football team', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Silvino_Gomes_Soares property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10336609 Q2347323
P27
Q15617994
USER
Which administrative territories are Silvino Gomes Soares or Newton da Silva Maia a civilian of ?
OR((Q2347323,P27,c(Q15617994)), (Q10336609,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2347323
relation P27
action find
entity Q10336609
relation P27
type Q15617994
{'OR': [['Q2347323', 'P27', {'concept': 'Q15617994'}], ['Q10336609', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { ?k property:P27 ?t . VALUES ( ?k ) { ( resource:Q2347323 ) ( resource:Q10336609 ) } } . ?t rdf:type ontology:Q15617994 }
Newton da Silva Maia Silvino Gomes Soares
action filter_type
action union
action find
entity Silvino Gomes Soares
relation country of citizenship
action find
entity Newton da Silva Maia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Silvino Gomes Soares', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Newton da Silva Maia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?k property:country_of_citizenship ?t . VALUES ( ?k ) { ( resource:Silvino_Gomes_Soares ) ( resource:Newton_da_Silva_Maia ) } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q45 Q1011
SYSTEM
Brazil, Portugal, Cape Verde
Q155 Q45 Q1011
OR((Q2347323,P27,c(Q15617994)), (Q10336609,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2347323
relation P27
action find
entity Q10336609
relation P27
type Q15617994
[ANSWERS] are Silvino Gomes Soares or Newton da Silva Maia a civilian of
{'OR': [['Q2347323', 'P27', {'concept': 'Q15617994'}], ['Q10336609', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { ?k property:P27 ?t . VALUES ( ?k ) { ( resource:Q2347323 ) ( resource:Q10336609 ) } } . ?t rdf:type ontology:Q15617994 }
Brazil Portugal Cape Verde
Brazil, Portugal and Cape Verde are Silvino Gomes Soares or Newton da Silva Maia a civilian of
Brazil Portugal Cape Verde
action filter_type
action union
action find
entity Silvino Gomes Soares
relation country of citizenship
action find
entity Newton da Silva Maia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Silvino Gomes Soares', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Newton da Silva Maia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?k property:country_of_citizenship ?t . VALUES ( ?k ) { ( resource:Silvino_Gomes_Soares ) ( resource:Newton_da_Silva_Maia ) } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q593644 Q937857
P106
Q502895
USER
Which people have career as association football player and chemist ?
AND((c(Q502895),P106,Q937857), (c(Q502895),P106,Q593644))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P106
action find_reverse
entity Q593644
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q937857'], [{'concept': 'Q502895'}, 'P106', 'Q593644']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P106 resource:Q937857 . ?e property:P106 resource:Q593644 }
chemist association football player
action filter_type
action intersection
action find_reverse
entity association football player
relation occupation
action find_reverse
entity chemist
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football player'], [{'concept': 'common name'}, 'occupation', 'chemist']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:occupation resource:association_football_player . ?e property:occupation resource:chemist }
[]
common name
Q250557 Q7085 Q17446883
SYSTEM
Willem Hesselink, Niels Bohr, Richard Valdov
Q250557 Q7085 Q17446883
AND((c(Q502895),P106,Q937857), (c(Q502895),P106,Q593644))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P106
action find_reverse
entity Q593644
relation P106
type Q502895
[ANSWERS] have career as association football player and chemist
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q937857'], [{'concept': 'Q502895'}, 'P106', 'Q593644']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P106 resource:Q937857 . ?e property:P106 resource:Q593644 }
Willem Hesselink Niels Bohr Richard Valdov
Willem Hesselink, Niels Bohr and Richard Valdov have career as association football player and chemist
Willem Hesselink Niels Bohr Richard Valdov
action filter_type
action intersection
action find_reverse
entity association football player
relation occupation
action find_reverse
entity chemist
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football player'], [{'concept': 'common name'}, 'occupation', 'chemist']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:occupation resource:association_football_player . ?e property:occupation resource:chemist }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7085
P119
Q43229
USER
Which organization is the tomb of that person ?
(Q7085,P119,c(Q43229))
action filter_type
action find
entity Q7085
relation P119
type Q43229
['Q7085', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { resource:Q7085 property:P119 ?z . ?z rdf:type ontology:Q43229 }
Niels Bohr
action filter_type
action find
entity Niels Bohr
relation place of burial
type organization
['Niels Bohr', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { resource:Niels_Bohr property:place_of_burial ?z . ?z rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q7085
SYSTEM
Did you mean Niels Bohr ?
Q250557 Q7085 Q17446883
(Q250557,P119,c(Q43229)) (Q7085,P119,c(Q43229)) (Q17446883,P119,c(Q43229))
[ANSWER]
['Q250557', 'P119', {'concept': 'Q43229'}] ['Q7085', 'P119', {'concept': 'Q43229'}] ['Q17446883', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { resource:Q7085 property:P119 ?z . ?z rdf:type ontology:Q43229 }
Willem Hesselink Niels Bohr Richard Valdov
Did you mean Niels Bohr ?
Niels Bohr
['Willem Hesselink', 'place of burial', {'concept': 'organization'}] ['Niels Bohr', 'place of burial', {'concept': 'organization'}] ['Richard Valdov', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { resource:Niels_Bohr property:place_of_burial ?z . ?z rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7085,P119,c(Q43229))
['Q7085', 'P119', {'concept': 'Q43229'}]
['Niels Bohr', 'place of burial', {'concept': 'organization'}]
[]
Q742670
SYSTEM
Assistens Cemetery
Q742670
(Q7085,P119,c(Q43229))
action filter_type
action find
entity Q7085
relation P119
type Q43229
[ANSWER] is the tomb of that person
['Q7085', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { resource:Q7085 property:P119 ?z . ?z rdf:type ontology:Q43229 }
Assistens Cemetery
Assistens Cemetery is the tomb of that person
Assistens Cemetery
action filter_type
action find
entity Niels Bohr
relation place of burial
type organization
['Niels Bohr', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { resource:Niels_Bohr property:place_of_burial ?z . ?z rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q5083101
P655
Q502895 Q7725634 Q2342494
USER
How many people are the translator of around the same number of literary works and collectables as Charles Valentine Le Grice ?
(c(Q7725634)|c(Q2342494),P655,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q5083101
relation P655
type Q7725634
type Q2342494
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } . ?w rdf:type ?v } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:P655 resource:Q5083101 . { ?f rdf:type ?z . VALUES ( ?z ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?q = ?m ) }
Charles Valentine Le Grice
action count
action approx
action union
action find_reverse_tuple_counts
relation translator
type common name
type literary work
action find_reverse_tuple_counts
relation translator
type common name
type collectable
action count
action filter_multi_types
action find_reverse
entity Charles Valentine Le Grice
relation translator
type literary work
type collectable
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:literary_work ) ( ontology:collectable ) } . ?w rdf:type ?v } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:translator resource:Charles_Valentine_Le_Grice . { ?f rdf:type ?z . VALUES ( ?z ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } . FILTER ( ?q = ?m ) }
[]
common name literary work collectable
SYSTEM
133
Q15485966 Q1365246 Q6319456 Q8073032 Q15829932 Q166103 Q4776346 Q3893579 Q740181 Q5075584 Q15731133 Q583636 Q1204764 Q551916 Q315387 Q3002899 Q2034058 Q2342303 Q21198589 Q6106473 Q11892653 Q18057590 Q5592425 Q15830175 Q2426358 Q326446 Q19558763 Q5344871 Q173893 Q15730505 Q6221743 Q537725 Q27210315 Q948875 Q18194528 Q1261943 Q18910540 Q705464 Q736808 Q352725 Q2306330 Q12021951 Q117818 Q3435434 Q3480886 Q12347931 Q20741641 Q3750781 Q5083101 Q11867575 Q17384764 Q194797 Q6555626 Q964250 Q3666426 Q1291339 Q15845503 Q15730888 Q7833 Q24249650 Q15831362 Q15732079 Q5338555 Q4858769 Q1351224 Q25916882 Q16012057 Q13007 Q4374157 Q6830502 Q12044092 Q429915 Q5407336 Q11226970 Q5389664 Q12032593 Q26696385 Q2850611 Q5591211 Q24732882 Q12348796 Q12026167 Q993835 Q20880602 Q711132 Q2636383 Q7199 Q327853 Q11466035 Q7792959 Q17373543 Q78992 Q1142551 Q7791545 Q27645 Q5331522 Q2830584 Q18507214 Q12348348 Q1968214 Q4961807 Q503276 Q3370615 Q229646 Q9251137 Q6759575 Q600678 Q5076781 Q6218266 Q26696413 Q713705 Q4722337 Q263430 Q21993674 Q21121436 Q151720 Q435584 Q3570545 Q15731156 Q18912322 Q4231926 Q505466 Q23238000 Q356011 Q1077843 Q12355898 Q3361811 Q182905 Q3257803 Q15732879 Q15830142 Q2158925 Q4771483
(c(Q7725634)|c(Q2342494),P655,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q5083101
relation P655
type Q7725634
type Q2342494
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } . ?w rdf:type ?v } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:P655 resource:Q5083101 . { ?f rdf:type ?z . VALUES ( ?z ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?q = ?m ) }
Jay P. Green Vatslav Vorovsky Jyotirindranath Tagore Zlatoje Martinov August Radimský Étienne Lamotte Antonina W. Bouis Vilho Setälä Karel Sabina Charles Bertram Bronislaw Kuhl Bernhard Severin Ingemann Whittaker Chambers Jaume Grau Casas Frank P. Ramsey Cristoforo Armeno V. V. Adoratsky Gregory Rabassa William James Hickie J. Martin Holman Sauvo Puhtila Ernest Falconnet Graeme Wilson Jan Šafránek Thomas Nugent Antonin Klášterský Lucian Hobart Ryland Edward Plumptre John Wycliffe Isĥak Muĉnik John Bertram Phillips David Bellos Iain Patterson Ferenc Verseghy Henry Arthur Deuteros Phillips Karel Bohuš Kober Edward Philip Coleridge Masuji Ibuse John Sydenham Furnivall Richard Brinsley Sheridan Philip Henry Wicksteed Ivan Krestanov Jean Barbeyrac Robert Hurley Lewis Campbell Fran Janjić John P. O'Neill Antoni Rubió i Lluch Charles Valentine Le Grice Juho Jäykkä Konrad Alexis Waaranen Joscelyn Godwin Lionel Elvin Ilya Kaminsky-Halpérine Charles Kenneth Scott Moncrieff Edvard Fredin Anne Busnel Oskar Frode Boris Vian Jan Dolenský Václav Kredba Alexandra Mexin Edith Grossman Barbara Bray Pekka Hannikainen Julien François William Garcin Paull Franklin Baum Lidia Zamenhof Vladimir Posse Michael Gallagher Pavel J. Šulc Alexander Sumarokov Eugene H. Peterson Henrik Seppik Erkin Vohidov Ladislav Quis Itala Castellini Anna Swanwick Steven T. Byington Hynek Jaroslav Mejsnar Hendrik Coenraad Mees Josef Jiří Stankovský Otokar Fischer David Rosenberg Gerard van Swieten Richard Howard Marcel Proust C.V.A. Strandberg Atsuko Yamashita Thomas P. Whitney Jacek Giszczak Abraham Brill James Strang Thomas Kingsmill Abbott Mikhail Bakunin Ebba Segerberg Alan Sheridan Sarah Elizabeth Utterson Grenkamp Nikolay Khokhlov Breon Mitchell Charles Kay Ogden Paul Benoit G. E. M. Anscombe Edward Porębowicz Margaret Jull Costa Aleksey Pleshcheyev Charles DeKay John Addison Porter Natalia Rosi Herbert Giles Alfred Birnbaum Károly Szász Vincent Roudaut George Thornley Ken Liu Samuil Marshak Xan Fielding Andreo Fiŝer Thomas Bailey Saunders Natalia Konchalovskaïa Idries Shah Geoffrey Montague Cookson Richard Claverhouse Jebb Abdullah Yusuf Ali Tiberiu Morariu Pamphile LeMay Georgi Plekhanov Lodovico Domenichi Léon Bergiers Jan J. Benešovský-Veselý Robert Sutherland Rattray Anthea Bell
133
action count
action approx
action union
action find_reverse_tuple_counts
relation translator
type common name
type literary work
action find_reverse_tuple_counts
relation translator
type common name
type collectable
action count
action filter_multi_types
action find_reverse
entity Charles Valentine Le Grice
relation translator
type literary work
type collectable
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:literary_work ) ( ontology:collectable ) } . ?w rdf:type ?v } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:translator resource:Charles_Valentine_Le_Grice . { ?f rdf:type ?z . VALUES ( ?z ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } . FILTER ( ?q = ?m ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q455428 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player and were Swedish Football Association a part of ?
AND((Q937857,P425,c(Q349)), (Q455428,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q455428
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q455428', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?g WHERE { resource:Q937857 property:P425 ?g . resource:Q455428 property:P641 ?g . ?g rdf:type ontology:Q349 }
Swedish Football Association association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Swedish Football Association
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Swedish Football Association', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?g WHERE { resource:association_football_player property:field_of_this_occupation ?g . resource:Swedish_Football_Association property:sport ?g . ?g rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q455428,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q455428
relation P641
type Q349
And [ANSWER] is associated with the field of occupation [ANSWER] player and were Swedish Football Association a part of
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q455428', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?g WHERE { resource:Q937857 property:P425 ?g . resource:Q455428 property:P641 ?g . ?g rdf:type ontology:Q349 }
association football
And association football is associated with the field of occupation association football player and were Swedish Football Association a part of
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Swedish Football Association
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Swedish Football Association', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?g WHERE { resource:association_football_player property:field_of_this_occupation ?g . resource:Swedish_Football_Association property:sport ?g . ?g rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q386724 Q838948
USER
How many occupations were the main subjects of approximately 17 works and works of art 's work ?
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 17
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:P921 ?q . ?q rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P921 ?q . ?q rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } } GROUP BY ?q } . FILTER ( ?p = 17 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 17
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:main_subject ?q . ?q rdf:type ontology:occupation . ?s rdf:type ontology:work_of_art } UNION { ?s property:main_subject ?q . ?q rdf:type ontology:occupation . ?s rdf:type ontology:work } } GROUP BY ?q } . FILTER ( ?p = 17 ) }
[]
occupation work work of art
SYSTEM
2
Q164236 Q16746569
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 17
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:P921 ?q . ?q rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P921 ?q . ?q rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } } GROUP BY ?q } . FILTER ( ?p = 17 ) }
war correspondent high school student
2
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 17
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:main_subject ?q . ?q rdf:type ontology:occupation . ?s rdf:type ontology:work_of_art } UNION { ?s property:main_subject ?q . ?q rdf:type ontology:occupation . ?s rdf:type ontology:work } } GROUP BY ?q } . FILTER ( ?p = 17 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7085
P551
Q15617994
USER
Where did Niels Bohr live ?
(Q7085,P551,c(Q15617994))
action filter_type
action find
entity Q7085
relation P551
type Q15617994
['Q7085', 'P551', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7085 property:P551 ?x . ?x rdf:type ontology:Q15617994 }
Niels Bohr
action filter_type
action find
entity Niels Bohr
relation residence
type designation for an administrative territorial entity
['Niels Bohr', 'residence', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Niels_Bohr property:residence ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q34
SYSTEM
United States of America, Sweden
Q30 Q34
(Q7085,P551,c(Q15617994))
action filter_type
action find
entity Q7085
relation P551
type Q15617994
Niels Bohr lived the [ANSWERS]
['Q7085', 'P551', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7085 property:P551 ?x . ?x rdf:type ontology:Q15617994 }
United States of America Sweden
Niels Bohr lived the United States of America and Sweden
United States of America Sweden
action filter_type
action find
entity Niels Bohr
relation residence
type designation for an administrative territorial entity
['Niels Bohr', 'residence', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Niels_Bohr property:residence ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]