Simple Question (Direct)
Simple Question
Q2308278
P21
Q290
USER
Which sex does Jacques Van Gompel have ?
(Q2308278,P21,c(Q290))
action filter_type
action find
entity Q2308278
relation P21
type Q290
['Q2308278', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q2308278 property:P21 ?n }
Jacques Van Gompel
action filter_type
action find
entity Jacques Van Gompel
relation gender
type sex
['Jacques Van Gompel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Jacques_Van_Gompel property:gender ?n }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2308278,P21,c(Q290))
action filter_type
action find
entity Q2308278
relation P21
type Q290
Jacques Van Gompel has a [ANSWER]
['Q2308278', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q2308278 property:P21 ?n }
male
Jacques Van Gompel has a male
male
action filter_type
action find
entity Jacques Van Gompel
relation gender
type sex
['Jacques Van Gompel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Jacques_Van_Gompel property:gender ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2308278
P106
Q12737077
USER
What does that person do for a living ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2308278
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q2308278 property:P106 ?p }
Jacques Van Gompel
action filter_type
action find
entity Jacques Van Gompel
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Jacques_Van_Gompel property:occupation ?p }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2308278
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q2308278 property:P106 ?p }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Jacques Van Gompel
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Jacques_Van_Gompel property:occupation ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2308278
P6
Q56061
USER
Which administrative territory has that person as its head of government ?
(c(Q56061),P6,Q82955)
action filter_type
action find_reverse
entity Q2308278
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q82955']
SELECT DISTINCT ?k WHERE { ?k property:P6 resource:Q2308278 . ?k rdf:type ontology:Q56061 }
Jacques Van Gompel
action filter_type
action find_reverse
entity Jacques Van Gompel
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'politician']
SELECT DISTINCT ?k WHERE { ?k property:head_of_government resource:Jacques_Van_Gompel . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q81046
SYSTEM
Charleroi
Q81046
(c(Q56061),P6,Q82955)
action filter_type
action find_reverse
entity Q2308278
relation P6
type Q56061
[ANSWER] has that person as its head of government
[{'concept': 'Q56061'}, 'P6', 'Q82955']
SELECT DISTINCT ?k WHERE { ?k property:P6 resource:Q2308278 . ?k rdf:type ontology:Q56061 }
Charleroi
Charleroi has that person as its head of government
Charleroi
action filter_type
action find_reverse
entity Jacques Van Gompel
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'politician']
SELECT DISTINCT ?k WHERE { ?k property:head_of_government resource:Jacques_Van_Gompel . ?k rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q6279355 Q2308278
P6
Q56061
USER
Or Jose Esteves?
OR((c(Q56061),P6,Q2308278), (c(Q56061),P6,Q6279355))
action filter_type
action union
action find_reverse
entity Q2308278
relation P6
action find_reverse
entity Q6279355
relation P6
type Q56061
{'OR': [[{'concept': 'Q56061'}, 'P6', 'Q2308278'], [{'concept': 'Q56061'}, 'P6', 'Q6279355']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { { ?u property:P6 resource:Q2308278 } UNION { ?u property:P6 resource:Q6279355 } } }
Jose Esteves Jacques Van Gompel
action filter_type
action union
action find_reverse
entity Jacques Van Gompel
relation head of government
action find_reverse
entity Jose Esteves
relation head of government
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'head of government', 'Jacques Van Gompel'], [{'concept': 'administrative territorial entity'}, 'head of government', 'Jose Esteves']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { { ?u property:head_of_government resource:Jacques_Van_Gompel } UNION { ?u property:head_of_government resource:Jose_Esteves } } }
[]
administrative territorial entity
Q927510 Q81046
SYSTEM
Milpitas, Charleroi
Q927510 Q81046
OR((c(Q56061),P6,Q2308278), (c(Q56061),P6,Q6279355))
action filter_type
action union
action find_reverse
entity Q2308278
relation P6
action find_reverse
entity Q6279355
relation P6
type Q56061
[ANSWERS]
{'OR': [[{'concept': 'Q56061'}, 'P6', 'Q2308278'], [{'concept': 'Q56061'}, 'P6', 'Q6279355']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { { ?u property:P6 resource:Q2308278 } UNION { ?u property:P6 resource:Q6279355 } } }
Milpitas Charleroi
Milpitas Charleroi
action filter_type
action union
action find_reverse
entity Jacques Van Gompel
relation head of government
action find_reverse
entity Jose Esteves
relation head of government
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'head of government', 'Jacques Van Gompel'], [{'concept': 'administrative territorial entity'}, 'head of government', 'Jose Esteves']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { { ?u property:head_of_government resource:Jacques_Van_Gompel } UNION { ?u property:head_of_government resource:Jose_Esteves } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16106256 Q2308278
P27
Q15617994
USER
Which administrative territories are Jacques Van Gompel or Farid Zablith Filho a civilian of ?
OR((Q2308278,P27,c(Q15617994)), (Q16106256,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2308278
relation P27
action find
entity Q16106256
relation P27
type Q15617994
{'OR': [['Q2308278', 'P27', {'concept': 'Q15617994'}], ['Q16106256', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { { resource:Q2308278 property:P27 ?y } UNION { resource:Q16106256 property:P27 ?y } } }
Farid Zablith Filho Jacques Van Gompel
action filter_type
action union
action find
entity Jacques Van Gompel
relation country of citizenship
action find
entity Farid Zablith Filho
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jacques Van Gompel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Farid Zablith Filho', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Jacques_Van_Gompel property:country_of_citizenship ?y } UNION { resource:Farid_Zablith_Filho property:country_of_citizenship ?y } } }
[]
designation for an administrative territorial entity
Q155 Q31
SYSTEM
Brazil, Belgium
Q155 Q31
OR((Q2308278,P27,c(Q15617994)), (Q16106256,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2308278
relation P27
action find
entity Q16106256
relation P27
type Q15617994
[ANSWERS] are Jacques Van Gompel or Farid Zablith Filho a civilian of
{'OR': [['Q2308278', 'P27', {'concept': 'Q15617994'}], ['Q16106256', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { { resource:Q2308278 property:P27 ?y } UNION { resource:Q16106256 property:P27 ?y } } }
Brazil Belgium
Brazil and Belgium are Jacques Van Gompel or Farid Zablith Filho a civilian of
Brazil Belgium
action filter_type
action union
action find
entity Jacques Van Gompel
relation country of citizenship
action find
entity Farid Zablith Filho
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jacques Van Gompel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Farid Zablith Filho', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Jacques_Van_Gompel property:country_of_citizenship ?y } UNION { resource:Farid_Zablith_Filho property:country_of_citizenship ?y } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q31
P17
Q41176
USER
Which buildings are present in Brazil and Belgium ?
(c(Q41176),P17,Q155) (c(Q41176),P17,Q31)
action union
action filter_type
action find_reverse
entity Q155
relation P17
type Q41176
action filter_type
action find_reverse
entity Q31
relation P17
type Q41176
[{'concept': 'Q41176'}, 'P17', 'Q155'] [{'concept': 'Q41176'}, 'P17', 'Q31']
SELECT DISTINCT ?w WHERE { { ?w property:P17 resource:Q155 . ?w rdf:type ontology:Q41176 } UNION { ?w rdf:type ontology:Q41176 . ?w property:P17 resource:Q31 } }
Brazil Belgium
action union
action filter_type
action find_reverse
entity Brazil
relation country
type building
action filter_type
action find_reverse
entity Belgium
relation country
type building
[{'concept': 'building'}, 'country', 'Brazil'] [{'concept': 'building'}, 'country', 'Belgium']
SELECT DISTINCT ?w WHERE { { ?w property:country resource:Brazil . ?w rdf:type ontology:building } UNION { ?w rdf:type ontology:building . ?w property:country resource:Belgium } }
[]
building
Q239028 Q27681118 Q244169
SYSTEM
Stoclet Palace, Braem Pavilion, Itaipu Dam
Q3462810 Q10298527 Q10298524 Q16910931 Q2330391 Q3277433 Q6765701 Q5398735 Q7691903 Q26869711 Q3917430 Q3776871 Q496950 Q678520 Q959223 Q2749982 Q3063375 Q244169 Q10367739 Q10274961 Q1630439 Q10298365 Q3533704 Q1867854 Q20553782 Q19915255 Q17346991 Q3080484 Q1916682 Q13741465 Q2560724 Q1728383 Q2927115 Q2801775 Q2667287 Q239028 Q635307 Q3533637 Q3533638 Q3269083 Q22086205 Q20741330 Q850537 Q3056762 Q2928460 Q26972754 Q2123187 Q2480906 Q2382569 Q1965818 Q3360870 Q2124507 Q27681118 Q2186806 Q2377122 Q3527925 Q2636175 Q27681013 Q2286053 Q2553113 Q2979314 Q3285820 Q726678 Q20900481 Q2154112 Q2327757 Q704698 Q3431714 Q1891317 Q20900484 Q1131821 Q1854756 Q368083 Q2803442 Q13453288 Q1929053 Q2429651 Q2500784 Q19951058
(c(Q41176),P17,Q155) (c(Q41176),P17,Q31)
action union
action filter_type
action find_reverse
entity Q155
relation P17
type Q41176
action filter_type
action find_reverse
entity Q31
relation P17
type Q41176
[ANSWERS] are present in Brazil and Belgium
[{'concept': 'Q41176'}, 'P17', 'Q155'] [{'concept': 'Q41176'}, 'P17', 'Q31']
SELECT DISTINCT ?w WHERE { { ?w property:P17 resource:Q155 . ?w rdf:type ontology:Q41176 } UNION { ?w rdf:type ontology:Q41176 . ?w property:P17 resource:Q31 } }
Cláudio Santoro National Theater Hospital de Base Hospital das Clínicas de Ribeirão Preto Palácio da Luz Palácio da Alvorada Riocentro Marista Hall Espaço dos Satyros Teatro Carlos Gomes Centro Cultural Banco do Brasil Palácio do Jaburu São Pedro Theatre Palácio do Planalto Santa Casa de Misericordia Hospital Teatro Paiol Paço de São Cristóvão Theatro da Paz Itaipu Dam Santa Casa de Misericórdia de Fortaleza Espaço Parlapatões Albert Einstein Hospital Hospital Daher Palácio Quitandinha Concertgebouw Kasteel Hof de Bist freemasonry in Belgium during French ruling Fontaine-l'Évêque Castle History of Freemasonry in Belgium Grenslandhallen Chapel of Our Lady Comforter of the Afflicted Forest National Chapel beheading of John the Baptist Festival Bruxellons! Simon Stevin Elisabeth Gasthuis Stoclet Palace Royal Palace of Brussels Tour Paradis Finance Tower French Lycee in Brussels La Fidélité Chapelle Sainte-Anne Law Courts of Brussels hermitage and chapel of Saint-Thibaut Seminary of Tournai DE Studio University Hospital Brussels Grand Orient of Belgium Rovertkapel Astro Tower Granvelle Palace De Werf Braem Pavilion Erasmus Hospital Rogier Tower Théâtre Royal du Parc Madou Plaza Tower The House Flanders Expo AZ Groeninge Cliniques Universitaires Saint-Luc Manhattan Center Les Amis Philanthropes Centre hospitalier spécialisé L'Accueil Bourla Theater St Joseph College, Aalst Prince-Bishops' Palace Rideau de Bruxelles Les Amis Philanthropes nº 3 AZ Erica Palace of Coudenberg Beursschouwburg Opéra du Quai au Foin Hof van Savoye Our Lady Chapel, Clairefontaine Kortrijk Xpo Egmont Palace Vlaamse Opera Hôpital civil Marie Curie
Stoclet Palace, Braem Pavilion and Itaipu Dam are present in Brazil and Belgium
Stoclet Palace Braem Pavilion Itaipu Dam
action union
action filter_type
action find_reverse
entity Brazil
relation country
type building
action filter_type
action find_reverse
entity Belgium
relation country
type building
[{'concept': 'building'}, 'country', 'Brazil'] [{'concept': 'building'}, 'country', 'Belgium']
SELECT DISTINCT ?w WHERE { { ?w property:country resource:Brazil . ?w rdf:type ontology:building } UNION { ?w rdf:type ontology:building . ?w property:country resource:Belgium } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q239028 Q27681118 Q244169
P17
Q15617994
USER
Which administrative territories are Stoclet Palace, Braem Pavilion and Itaipu Dam situated in ?
(Q239028,P17,c(Q15617994)) (Q27681118,P17,c(Q15617994)) (Q244169,P17,c(Q15617994))
action union
action filter_type
action find
entity Q239028
relation P17
type Q15617994
action filter_type
action find
entity Q27681118
relation P17
type Q15617994
action filter_type
action find
entity Q244169
relation P17
type Q15617994
['Q239028', 'P17', {'concept': 'Q15617994'}] ['Q27681118', 'P17', {'concept': 'Q15617994'}] ['Q244169', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { resource:Q239028 property:P17 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q27681118 property:P17 ?v . ?v rdf:type ontology:Q15617994 } }
Stoclet Palace Braem Pavilion Itaipu Dam
action union
action filter_type
action find
entity Stoclet Palace
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Braem Pavilion
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Itaipu Dam
relation country
type designation for an administrative territorial entity
['Stoclet Palace', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Braem Pavilion', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Itaipu Dam', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:Stoclet_Palace property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Braem_Pavilion property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q155 Q31 Q31
SYSTEM
Brazil for 1st, Belgium for 2nd, 3rd
Q31 Q31 Q155 Q733
(Q239028,P17,c(Q15617994)) (Q27681118,P17,c(Q15617994)) (Q244169,P17,c(Q15617994))
action union
action filter_type
action find
entity Q239028
relation P17
type Q15617994
action filter_type
action find
entity Q27681118
relation P17
type Q15617994
action filter_type
action find
entity Q244169
relation P17
type Q15617994
[ANSWERS]
['Q239028', 'P17', {'concept': 'Q15617994'}] ['Q27681118', 'P17', {'concept': 'Q15617994'}] ['Q244169', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { resource:Q239028 property:P17 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q27681118 property:P17 ?v . ?v rdf:type ontology:Q15617994 } }
Belgium Belgium Brazil Paraguay
Which administrative territories are Stoclet Palace, Braem Pavilion and Itaipu Dam situated in
Brazil Belgium Belgium
action union
action filter_type
action find
entity Stoclet Palace
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Braem Pavilion
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Itaipu Dam
relation country
type designation for an administrative territorial entity
['Stoclet Palace', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Braem Pavilion', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Itaipu Dam', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:Stoclet_Palace property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Braem_Pavilion property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q31
P840
Q838948
USER
Which works of art have their narrative set in that administrative territory ?
(c(Q838948),P840,Q31)
action filter_type
action find_reverse
entity Q31
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q31']
SELECT DISTINCT ?r WHERE { ?r property:P840 resource:Q31 . ?r rdf:type ontology:Q838948 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Belgium']
SELECT DISTINCT ?r WHERE { ?r property:narrative_location resource:Belgium . ?r rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q31
SYSTEM
Did you mean Belgium ?
Q155 Q31 Q31
(c(Q838948),P840,Q155) (c(Q838948),P840,Q31) (c(Q838948),P840,Q31)
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q155'] [{'concept': 'Q838948'}, 'P840', 'Q31'] [{'concept': 'Q838948'}, 'P840', 'Q31']
SELECT DISTINCT ?r WHERE { ?r property:P840 resource:Q31 . ?r rdf:type ontology:Q838948 }
Brazil Belgium Belgium
Did you mean Belgium ?
Belgium
[{'concept': 'work of art'}, 'narrative location', 'Brazil'] [{'concept': 'work of art'}, 'narrative location', 'Belgium'] [{'concept': 'work of art'}, 'narrative location', 'Belgium']
SELECT DISTINCT ?r WHERE { ?r property:narrative_location resource:Belgium . ?r rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P840,Q31)
[{'concept': 'Q838948'}, 'P840', 'Q31']
[{'concept': 'work of art'}, 'narrative location', 'Belgium']
[]
Q218589 Q217220 Q28936
SYSTEM
War Horse, Patton, Cloud Atlas
Q1416896 Q4631455 Q1907380 Q661693 Q2072055 Q3267400 Q835581 Q2145893 Q781608 Q2556728 Q1505754 Q2910093 Q7720638 Q926885 Q1892129 Q1604818 Q2470533 Q7882485 Q2986009 Q1620831 Q1251504 Q491871 Q3319961 Q7742840 Q1215008 Q7549335 Q217220 Q28936 Q1675401 Q2681840 Q7581906 Q1154221 Q638884 Q4691106 Q2060453 Q3511728 Q7737611 Q499515 Q658558 Q2282061 Q2705961 Q8989264 Q2080614 Q258319 Q7974203 Q7847489 Q1383282 Q1196918 Q6697727 Q700682 Q218589 Q613284 Q800111 Q2561866
(c(Q838948),P840,Q31)
action filter_type
action find_reverse
entity Q31
relation P840
type Q838948
[ANSWERS] have their narrative set in that administrative territory
[{'concept': 'Q838948'}, 'P840', 'Q31']
SELECT DISTINCT ?r WHERE { ?r property:P840 resource:Q31 . ?r rdf:type ontology:Q838948 }
JCVD 22nd of May Rosetta Anything for Her The Kid with a Bike Lumumba The Red Baron The Sacrament The Nun's Story Sl8n8 A Midnight Clear John the Fearless The Burgomaster of Stilemonde La Vie sexuelle des Belges 1950-1978 If It's Tuesday, This Must Be Belgium Waterloo Hector Uncensored Beneath Hill 60 Battleground Double Team Man Bites Dog My Worst Nightmare The Jack of Diamonds The Mill and the Cross So Little Time Patton Cloud Atlas Daens The van Paemel Family Squadron Leader X La Promesse Attack Against the Wind Passchendaele Soeur Sourire The Gray Nun of Belgium Ben X Saints and Soldiers Camping Cosmos Post Tenebras Lux Company of Heroes The Bronte Sisters Castle Keep Waterloo True North Ex Drummer The Son Lucker Battle of the Bulge War Horse Becky Sharp Dikkenek Koko Flanel
War Horse, Patton and Cloud Atlas have their narrative set in that administrative territory
War Horse Patton Cloud Atlas
action filter_type
action find_reverse
entity Belgium
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Belgium']
SELECT DISTINCT ?r WHERE { ?r property:narrative_location resource:Belgium . ?r rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q15619164 Q502895 Q838948
USER
How many works of art are approximately 12 abstract beings or people a character of ?
(c(Q838948),P674,c(Q15619164)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P674
type Q838948
type Q15619164
action find_tuple_counts
relation P674
type Q838948
type Q502895
value 12
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?i WHERE { { ?i property:P674 ?o . ?i rdf:type ontology:Q838948 . ?o rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q838948 . ?o rdf:type ontology:Q15619164 . ?i property:P674 ?o } } GROUP BY ?i } . FILTER ( ?n = 12 ) }
action count
action approx
action union
action find_tuple_counts
relation characters
type work of art
type abstract being
action find_tuple_counts
relation characters
type work of art
type common name
value 12
[{'concept': 'work of art'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?i WHERE { { ?i property:characters ?o . ?i rdf:type ontology:work_of_art . ?o rdf:type ontology:common_name } UNION { ?i rdf:type ontology:work_of_art . ?o rdf:type ontology:abstract_being . ?i property:characters ?o } } GROUP BY ?i } . FILTER ( ?n = 12 ) }
[]
abstract being common name work of art
SYSTEM
1
Q332387
(c(Q838948),P674,c(Q15619164)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P674
type Q838948
type Q15619164
action find_tuple_counts
relation P674
type Q838948
type Q502895
value 12
[ANSWER]
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?i WHERE { { ?i property:P674 ?o . ?i rdf:type ontology:Q838948 . ?o rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q838948 . ?o rdf:type ontology:Q15619164 . ?i property:P674 ?o } } GROUP BY ?i } . FILTER ( ?n = 12 ) }
The Taming of the Shrew
1
action count
action approx
action union
action find_tuple_counts
relation characters
type work of art
type abstract being
action find_tuple_counts
relation characters
type work of art
type common name
value 12
[{'concept': 'work of art'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?i WHERE { { ?i property:characters ?o . ?i rdf:type ontology:work_of_art . ?o rdf:type ontology:common_name } UNION { ?i rdf:type ontology:work_of_art . ?o rdf:type ontology:abstract_being . ?i property:characters ?o } } GROUP BY ?i } . FILTER ( ?n = 12 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P840
Q166142
USER
Which applications have a setting location of Belgium ?
(c(Q166142),P840,Q31)
action filter_type
action find_reverse
entity Q31
relation P840
type Q166142
[{'concept': 'Q166142'}, 'P840', 'Q31']
SELECT DISTINCT ?b WHERE { ?b property:P840 resource:Q31 . ?b rdf:type ontology:Q166142 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'Belgium']
SELECT DISTINCT ?b WHERE { ?b property:narrative_location resource:Belgium . ?b rdf:type ontology:application }
[]
application
Q4104 Q2632206 Q791439
SYSTEM
Need for Speed: Shift, Euro Truck Simulator 2, Battlefield 1942
Q980494 Q4104 Q2632206 Q791439
(c(Q166142),P840,Q31)
action filter_type
action find_reverse
entity Q31
relation P840
type Q166142
Germany [ANSWERS] have a setting location of Belgium
[{'concept': 'Q166142'}, 'P840', 'Q31']
SELECT DISTINCT ?b WHERE { ?b property:P840 resource:Q31 . ?b rdf:type ontology:Q166142 }
UEFA Euro 2000 Need for Speed: Shift Euro Truck Simulator 2 Battlefield 1942
Germany Need for Speed: Shift, Euro Truck Simulator 2 and Battlefield 1942 have a setting location of Belgium
Need for Speed: Shift Euro Truck Simulator 2 Battlefield 1942
action filter_type
action find_reverse
entity Belgium
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'Belgium']
SELECT DISTINCT ?b WHERE { ?b property:narrative_location resource:Belgium . ?b rdf:type ontology:application }
[]