Simple Question (Direct)
Simple Question
Q702059
P20
Q56061
USER
Where did the expiration of Alexander Grill occur ?
(Q702059,P20,c(Q56061))
action filter_type
action find
entity Q702059
relation P20
type Q56061
['Q702059', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q702059 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Alexander Grill
action filter_type
action find
entity Alexander Grill
relation place of death
type administrative territorial entity
['Alexander Grill', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Alexander_Grill property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q702059,P20,c(Q56061))
action filter_type
action find
entity Q702059
relation P20
type Q56061
The expiration of Alexander Grill occurred in [ANSWER]
['Q702059', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q702059 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Vienna
The expiration of Alexander Grill occurred in Vienna
Vienna
action filter_type
action find
entity Alexander Grill
relation place of death
type administrative territorial entity
['Alexander Grill', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Alexander_Grill property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q702059
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q1741)
action filter_type
action find_reverse
entity Q702059
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1741']
SELECT DISTINCT ?e WHERE { ?e property:P161 resource:Q702059 . ?e rdf:type ontology:Q838948 }
Alexander Grill
action filter_type
action find_reverse
entity Alexander Grill
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Vienna']
SELECT DISTINCT ?e WHERE { ?e property:cast_member resource:Alexander_Grill . ?e rdf:type ontology:work_of_art }
[]
work of art
Q914722 Q1438334
SYSTEM
Schwarzwaldfahrt aus Liebeskummer, Tante Trude aus Buxtehude
Q914722 Q1438334
(c(Q838948),P161,Q1741)
action filter_type
action find_reverse
entity Q702059
relation P161
type Q838948
That person star [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q1741']
SELECT DISTINCT ?e WHERE { ?e property:P161 resource:Q702059 . ?e rdf:type ontology:Q838948 }
Schwarzwaldfahrt aus Liebeskummer Tante Trude aus Buxtehude
That person star Schwarzwaldfahrt aus Liebeskummer and Tante Trude aus Buxtehude
Schwarzwaldfahrt aus Liebeskummer Tante Trude aus Buxtehude
action filter_type
action find_reverse
entity Alexander Grill
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Vienna']
SELECT DISTINCT ?e WHERE { ?e property:cast_member resource:Alexander_Grill . ?e rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q702059
P106
Q12737077 Q28640
USER
How many occupations or professions are the professions of Alexander Grill ?
(Q702059,P106,c(Q12737077)) (Q702059,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q702059
relation P106
type Q12737077
action filter_type
action find
entity Q702059
relation P106
type Q28640
['Q702059', 'P106', {'concept': 'Q12737077'}] ['Q702059', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?q ) { ( ontology:Q12737077 ) ( ontology:Q28640 ) } . ?u rdf:type ?q }
Alexander Grill
action count
action union
action filter_type
action find
entity Alexander Grill
relation occupation
type occupation
action filter_type
action find
entity Alexander Grill
relation occupation
type profession
['Alexander Grill', 'occupation', {'concept': 'occupation'}] ['Alexander Grill', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?q ) { ( ontology:occupation ) ( ontology:profession ) } . ?u rdf:type ?q }
[]
occupation profession
SYSTEM
3
Q10800557 Q33999 Q2259451
(Q702059,P106,c(Q12737077)) (Q702059,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q702059
relation P106
type Q12737077
action filter_type
action find
entity Q702059
relation P106
type Q28640
[ANSWER]
['Q702059', 'P106', {'concept': 'Q12737077'}] ['Q702059', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?q ) { ( ontology:Q12737077 ) ( ontology:Q28640 ) } . ?u rdf:type ?q }
film actor actor stage actor
3
action count
action union
action filter_type
action find
entity Alexander Grill
relation occupation
type occupation
action filter_type
action find
entity Alexander Grill
relation occupation
type profession
['Alexander Grill', 'occupation', {'concept': 'occupation'}] ['Alexander Grill', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?q ) { ( ontology:occupation ) ( ontology:profession ) } . ?u rdf:type ?q }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5171305 Q702059
P27
Q1048835
USER
Which political territories are Alexander Grill or Cornelius Bernard Huggins a civilian of ?
OR((Q702059,P27,c(Q1048835)), (Q5171305,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q702059
relation P27
action find
entity Q5171305
relation P27
type Q1048835
{'OR': [['Q702059', 'P27', {'concept': 'Q1048835'}], ['Q5171305', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . { { resource:Q5171305 property:P27 ?v } UNION { resource:Q702059 property:P27 ?v } } }
Cornelius Bernard Huggins Alexander Grill
action filter_type
action union
action find
entity Alexander Grill
relation country of citizenship
action find
entity Cornelius Bernard Huggins
relation country of citizenship
type political territorial entity
{'OR': [['Alexander Grill', 'country of citizenship', {'concept': 'political territorial entity'}], ['Cornelius Bernard Huggins', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . { { resource:Cornelius_Bernard_Huggins property:country_of_citizenship ?v } UNION { resource:Alexander_Grill property:country_of_citizenship ?v } } }
[]
political territorial entity
Q757 Q40
SYSTEM
Saint Vincent and the Grenadines, Austria
Q757 Q40
OR((Q702059,P27,c(Q1048835)), (Q5171305,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q702059
relation P27
action find
entity Q5171305
relation P27
type Q1048835
[ANSWERS] are Alexander Grill or Cornelius Bernard Huggins a civilian of
{'OR': [['Q702059', 'P27', {'concept': 'Q1048835'}], ['Q5171305', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . { { resource:Q5171305 property:P27 ?v } UNION { resource:Q702059 property:P27 ?v } } }
Saint Vincent and the Grenadines Austria
Saint Vincent and the Grenadines and Austria are Alexander Grill or Cornelius Bernard Huggins a civilian of
Saint Vincent and the Grenadines Austria
action filter_type
action union
action find
entity Alexander Grill
relation country of citizenship
action find
entity Cornelius Bernard Huggins
relation country of citizenship
type political territorial entity
{'OR': [['Alexander Grill', 'country of citizenship', {'concept': 'political territorial entity'}], ['Cornelius Bernard Huggins', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . { { resource:Cornelius_Bernard_Huggins property:country_of_citizenship ?v } UNION { resource:Alexander_Grill property:country_of_citizenship ?v } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q757 Q40
P17
Q12737077
USER
Which occupations are situated in Saint Vincent and the Grenadines and Austria ?
(c(Q12737077),P17,Q757) (c(Q12737077),P17,Q40)
action union
action filter_type
action find_reverse
entity Q757
relation P17
type Q12737077
action filter_type
action find_reverse
entity Q40
relation P17
type Q12737077
[{'concept': 'Q12737077'}, 'P17', 'Q757'] [{'concept': 'Q12737077'}, 'P17', 'Q40']
SELECT DISTINCT ?f WHERE { { ?f property:P17 resource:Q757 . ?f rdf:type ontology:Q12737077 } UNION { ?f property:P17 resource:Q40 . ?f rdf:type ontology:Q12737077 } }
Saint Vincent and the Grenadines Austria
action union
action filter_type
action find_reverse
entity Saint Vincent and the Grenadines
relation country
type occupation
action filter_type
action find_reverse
entity Austria
relation country
type occupation
[{'concept': 'occupation'}, 'country', 'Saint Vincent and the Grenadines'] [{'concept': 'occupation'}, 'country', 'Austria']
SELECT DISTINCT ?f WHERE { { ?f property:country resource:Saint_Vincent_and_the_Grenadines . ?f rdf:type ontology:occupation } UNION { ?f property:country resource:Austria . ?f rdf:type ontology:occupation } }
[]
occupation
Q23938055 Q24256540 Q26869653
SYSTEM
Federal Minister of the Interior, governor of Carinthia, monarch of Saint Vincent and the Grenadines
Q19901423 Q26869653 Q23711521 Q23938055 Q24256233 Q19360771 Q5468294 Q17535155 Q692110 Q24256540 Q25273208 Q24256363 Q24256358 Q23710976 Q20675031 Q24256017 Q25608222 Q19666653 Q18821575 Q1714331 Q24255995 Q475658 Q1006360 Q24256102 Q24256525
(c(Q12737077),P17,Q757) (c(Q12737077),P17,Q40)
action union
action filter_type
action find_reverse
entity Q757
relation P17
type Q12737077
action filter_type
action find_reverse
entity Q40
relation P17
type Q12737077
[ANSWERS] are situated in Saint Vincent and the Grenadines and Austria
[{'concept': 'Q12737077'}, 'P17', 'Q757'] [{'concept': 'Q12737077'}, 'P17', 'Q40']
SELECT DISTINCT ?f WHERE { { ?f property:P17 resource:Q757 . ?f rdf:type ontology:Q12737077 } UNION { ?f property:P17 resource:Q40 . ?f rdf:type ontology:Q12737077 } }
Minister of Foreign Affairs monarch of Saint Vincent and the Grenadines Member of the regional parliament of Vienna Federal Minister of the Interior chairman of the Freedom Party of Austria member of the Austrian federal council Foreign Minister of Austria Member of the National Council of Austria Vice-Chancellor of Austria governor of Carinthia Austrian Students' Association chairperson leader of the Austrian Women's Ring Federal Minister for Health Member of the Landtag of Salzburg finance minister of Austria chairman of the Social Democratic Party member of the Styrian state parliament Landesrat Member of the Landtag of Lower Austria Federal Minister of Justice Federal Minister for Transport, Innovation and Technology President of Austria Bundesminister Federal Minister of Science and Research Leader of Team Stronach
Federal Minister of the Interior, governor of Carinthia and monarch of Saint Vincent and the Grenadines are situated in Saint Vincent and the Grenadines and Austria
Federal Minister of the Interior governor of Carinthia monarch of Saint Vincent and the Grenadines
action union
action filter_type
action find_reverse
entity Saint Vincent and the Grenadines
relation country
type occupation
action filter_type
action find_reverse
entity Austria
relation country
type occupation
[{'concept': 'occupation'}, 'country', 'Saint Vincent and the Grenadines'] [{'concept': 'occupation'}, 'country', 'Austria']
SELECT DISTINCT ?f WHERE { { ?f property:country resource:Saint_Vincent_and_the_Grenadines . ?f rdf:type ontology:occupation } UNION { ?f property:country resource:Austria . ?f rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q757
P6
Q502895
USER
Which person is that political territory the head of goverment of ?
(Q757,P6,c(Q502895))
action filter_type
action find
entity Q757
relation P6
type Q502895
['Q757', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q757 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Saint Vincent and the Grenadines
action filter_type
action find
entity Saint Vincent and the Grenadines
relation head of government
type common name
['Saint Vincent and the Grenadines', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Saint_Vincent_and_the_Grenadines property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q757
SYSTEM
Did you mean Saint Vincent and the Grenadines ?
Q23938055 Q24256540 Q26869653
(Q23938055,P6,c(Q502895)) (Q24256540,P6,c(Q502895)) (Q26869653,P6,c(Q502895))
[ANSWER]
['Q23938055', 'P6', {'concept': 'Q502895'}] ['Q24256540', 'P6', {'concept': 'Q502895'}] ['Q26869653', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q757 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Federal Minister of the Interior governor of Carinthia monarch of Saint Vincent and the Grenadines
Did you mean Saint Vincent and the Grenadines ?
Saint Vincent and the Grenadines
['Federal Minister of the Interior', 'head of government', {'concept': 'common name'}] ['governor of Carinthia', 'head of government', {'concept': 'common name'}] ['monarch of Saint Vincent and the Grenadines', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Saint_Vincent_and_the_Grenadines property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q757,P6,c(Q502895))
['Q757', 'P6', {'concept': 'Q502895'}]
['Saint Vincent and the Grenadines', 'head of government', {'concept': 'common name'}]
[]
Q57800
SYSTEM
Ralph Gonsalves
Q57800
(Q757,P6,c(Q502895))
action filter_type
action find
entity Q757
relation P6
type Q502895
[ANSWER] is that political territory the head of goverment of
['Q757', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q757 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Ralph Gonsalves
Ralph Gonsalves is that political territory the head of goverment of
Ralph Gonsalves
action filter_type
action find
entity Saint Vincent and the Grenadines
relation head of government
type common name
['Saint Vincent and the Grenadines', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Saint_Vincent_and_the_Grenadines property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57800
P6
Q1048835
USER
Which political territory is that person the head of the goverment of ?
(c(Q1048835),P6,Q57800)
action filter_type
action find_reverse
entity Q57800
relation P6
type Q1048835
[{'concept': 'Q1048835'}, 'P6', 'Q57800']
SELECT DISTINCT ?o WHERE { ?o property:P6 resource:Q57800 . ?o rdf:type ontology:Q1048835 }
Ralph Gonsalves
action filter_type
action find_reverse
entity Ralph Gonsalves
relation head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of government', 'Ralph Gonsalves']
SELECT DISTINCT ?o WHERE { ?o property:head_of_government resource:Ralph_Gonsalves . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q757
SYSTEM
Saint Vincent and the Grenadines
Q757
(c(Q1048835),P6,Q57800)
action filter_type
action find_reverse
entity Q57800
relation P6
type Q1048835
[ANSWER] is that person the head of the goverment of
[{'concept': 'Q1048835'}, 'P6', 'Q57800']
SELECT DISTINCT ?o WHERE { ?o property:P6 resource:Q57800 . ?o rdf:type ontology:Q1048835 }
Saint Vincent and the Grenadines
Saint Vincent and the Grenadines is that person the head of the goverment of
Saint Vincent and the Grenadines
action filter_type
action find_reverse
entity Ralph Gonsalves
relation head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of government', 'Ralph Gonsalves']
SELECT DISTINCT ?o WHERE { ?o property:head_of_government resource:Ralph_Gonsalves . ?o rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q488869 Q757
P47 P17
Q1048835
USER
Which political territories are Saint Vincent and the Grenadines present in or share the border with Benalmádena ?
OR((Q757,P17,c(Q1048835)), (Q488869,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q757
relation P17
action find
entity Q488869
relation P47
type Q1048835
{'OR': [['Q757', 'P17', {'concept': 'Q1048835'}], ['Q488869', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q488869 property:P47 ?r } UNION { resource:Q757 property:P17 ?r } } . ?r rdf:type ontology:Q1048835 }
Benalmádena Saint Vincent and the Grenadines
action filter_type
action union
action find
entity Saint Vincent and the Grenadines
relation country
action find
entity Benalmádena
relation shares border with
type political territorial entity
{'OR': [['Saint Vincent and the Grenadines', 'country', {'concept': 'political territorial entity'}], ['Benalmádena', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Benalmádena property:shares_border_with ?r } UNION { resource:Saint_Vincent_and_the_Grenadines property:country ?r } } . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q757 Q976528 Q492737 Q492735
SYSTEM
Saint Vincent and the Grenadines, Alhaurín de la Torre, Torremolinos, Fuengirola
Q757 Q976528 Q492737 Q492735
OR((Q757,P17,c(Q1048835)), (Q488869,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q757
relation P17
action find
entity Q488869
relation P47
type Q1048835
[ANSWERS] are Saint Vincent and the Grenadines present in or share the border with Benalmádena
{'OR': [['Q757', 'P17', {'concept': 'Q1048835'}], ['Q488869', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q488869 property:P47 ?r } UNION { resource:Q757 property:P17 ?r } } . ?r rdf:type ontology:Q1048835 }
Saint Vincent and the Grenadines Alhaurín de la Torre Torremolinos Fuengirola
Saint Vincent and the Grenadines, Alhaurín de la Torre, Torremolinos and Fuengirola are Saint Vincent and the Grenadines present in or share the border with Benalmádena
Saint Vincent and the Grenadines Alhaurín de la Torre Torremolinos Fuengirola
action filter_type
action union
action find
entity Saint Vincent and the Grenadines
relation country
action find
entity Benalmádena
relation shares border with
type political territorial entity
{'OR': [['Saint Vincent and the Grenadines', 'country', {'concept': 'political territorial entity'}], ['Benalmádena', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Benalmádena property:shares_border_with ?r } UNION { resource:Saint_Vincent_and_the_Grenadines property:country ?r } } . ?r rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1257984 Q757
P161 P35
Q502895
USER
Which people are the heads of state of Saint Vincent and the Grenadines or starred in Marriage on the Rocks ?
OR((Q757,P35,c(Q502895)), (Q1257984,P161,c(Q502895)))
action filter_type
action union
action find
entity Q757
relation P35
action find
entity Q1257984
relation P161
type Q502895
{'OR': [['Q757', 'P35', {'concept': 'Q502895'}], ['Q1257984', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q757 property:P35 ?e } UNION { resource:Q1257984 property:P161 ?e } } . ?e rdf:type ontology:Q502895 }
Marriage on the Rocks Saint Vincent and the Grenadines
action filter_type
action union
action find
entity Saint Vincent and the Grenadines
relation head of state
action find
entity Marriage on the Rocks
relation cast member
type common name
{'OR': [['Saint Vincent and the Grenadines', 'head of state', {'concept': 'common name'}], ['Marriage on the Rocks', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Saint_Vincent_and_the_Grenadines property:head_of_state ?e } UNION { resource:Marriage_on_the_Rocks property:cast_member ?e } } . ?e rdf:type ontology:common_name }
[]
common name
Q16349 Q540134 Q588745 Q443585 Q40912 Q519604 Q354705 Q327542 Q215359 Q443030
SYSTEM
Some of them are DeForest Kelley, Trini Lopez, Tony Bill, Cesar Romero, Frank Sinatra, Joi Lansing, Frederick Ballantyne, John McGiver, Dean Martin, Hermione Baddeley
Q588745 Q354705 Q16349 Q327542 Q40912 Q443030 Q215359 Q540134 Q519604 Q104146 Q9682 Q233937 Q443585 Q272505
OR((Q757,P35,c(Q502895)), (Q1257984,P161,c(Q502895)))
action filter_type
action union
action find
entity Q757
relation P35
action find
entity Q1257984
relation P161
type Q502895
[ANSWERS] are the heads of state of Saint Vincent and the Grenadines or starred in Marriage on the Rocks
{'OR': [['Q757', 'P35', {'concept': 'Q502895'}], ['Q1257984', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q757 property:P35 ?e } UNION { resource:Q1257984 property:P161 ?e } } . ?e rdf:type ontology:Q502895 }
Tony Bill Frederick Ballantyne DeForest Kelley John McGiver Frank Sinatra Hermione Baddeley Dean Martin Trini Lopez Joi Lansing Deborah Kerr Elizabeth II Nancy Sinatra Cesar Romero Kathleen Freeman
DeForest Kelley, Trini Lopez, Tony Bill, Cesar Romero, Frank Sinatra, Joi Lansing, Frederick Ballantyne, John McGiver, Dean Martin and Hermione Baddeley are the heads of state of Saint Vincent and the Grenadines or starred in Marriage on the Rocks
DeForest Kelley Trini Lopez Tony Bill Cesar Romero Frank Sinatra Joi Lansing Frederick Ballantyne John McGiver Dean Martin Hermione Baddeley
action filter_type
action union
action find
entity Saint Vincent and the Grenadines
relation head of state
action find
entity Marriage on the Rocks
relation cast member
type common name
{'OR': [['Saint Vincent and the Grenadines', 'head of state', {'concept': 'common name'}], ['Marriage on the Rocks', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Saint_Vincent_and_the_Grenadines property:head_of_state ?e } UNION { resource:Marriage_on_the_Rocks property:cast_member ?e } } . ?e rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16232584 Q327542
P27
Q15617994
USER
Which administrative territories are John McGiver or LA Revilla a civilian of ?
OR((Q327542,P27,c(Q15617994)), (Q16232584,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q327542
relation P27
action find
entity Q16232584
relation P27
type Q15617994
{'OR': [['Q327542', 'P27', {'concept': 'Q15617994'}], ['Q16232584', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q327542 property:P27 ?g } UNION { resource:Q16232584 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
LA Revilla John McGiver
action filter_type
action union
action find
entity John McGiver
relation country of citizenship
action find
entity LA Revilla
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John McGiver', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['LA Revilla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:John_McGiver property:country_of_citizenship ?g } UNION { resource:LA_Revilla property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928 Q30
SYSTEM
Philippines, United States of America
Q928 Q30
OR((Q327542,P27,c(Q15617994)), (Q16232584,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q327542
relation P27
action find
entity Q16232584
relation P27
type Q15617994
[ANSWERS] are John McGiver or LA Revilla a civilian of
{'OR': [['Q327542', 'P27', {'concept': 'Q15617994'}], ['Q16232584', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q327542 property:P27 ?g } UNION { resource:Q16232584 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Philippines United States of America
Philippines and United States of America are John McGiver or LA Revilla a civilian of
Philippines United States of America
action filter_type
action union
action find
entity John McGiver
relation country of citizenship
action find
entity LA Revilla
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John McGiver', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['LA Revilla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:John_McGiver property:country_of_citizenship ?g } UNION { resource:LA_Revilla property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q769
P85
Q7725634 Q484692 Q1048835
USER
How many political territories have lesser number of literary works or hymns as their national anthem than Grenada ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q769
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?h WHERE { { ?h property:P85 ?i . ?h rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q7725634 } UNION { ?h property:P85 ?i . ?h rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q484692 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:Q484692 } UNION { ?u rdf:type ontology:Q7725634 } } . resource:Q769 property:P85 ?u } } . FILTER ( ?k < ?n ) }
Grenada
action count
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Grenada
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?h WHERE { { ?h property:anthem ?i . ?h rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:literary_work } UNION { ?h property:anthem ?i . ?h rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:hymn } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:hymn } UNION { ?u rdf:type ontology:literary_work } } . resource:Grenada property:anthem ?u } } . FILTER ( ?k < ?n ) }
[]
literary work hymn political territorial entity
SYSTEM
38
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q1785790 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q769
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?h WHERE { { ?h property:P85 ?i . ?h rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q7725634 } UNION { ?h property:P85 ?i . ?h rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q484692 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:Q484692 } UNION { ?u rdf:type ontology:Q7725634 } } . resource:Q769 property:P85 ?u } } . FILTER ( ?k < ?n ) }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Selbach, Rio Grande do Sul Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
38
action count
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Grenada
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?h WHERE { { ?h property:anthem ?i . ?h rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:literary_work } UNION { ?h property:anthem ?i . ?h rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:hymn } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:hymn } UNION { ?u rdf:type ontology:literary_work } } . resource:Grenada property:anthem ?u } } . FILTER ( ?k < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q35
P85
Q7725634 Q484692 Q1048835
USER
And what about Denmark?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q35
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?s ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?v rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { VALUES ( ?y ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?b rdf:type ?y } . resource:Q35 property:P85 ?b } } . FILTER ( ?p < ?a ) }
Denmark
action count
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Denmark
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?s ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?v rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { VALUES ( ?y ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?b rdf:type ?y } . resource:Denmark property:anthem ?b } } . FILTER ( ?p < ?a ) }
[]
literary work hymn political territorial entity
SYSTEM
38
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q1785790 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q35
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?s ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?v rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { VALUES ( ?y ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?b rdf:type ?y } . resource:Q35 property:P85 ?b } } . FILTER ( ?p < ?a ) }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Selbach, Rio Grande do Sul Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
38
action count
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Denmark
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?s ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?v rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { VALUES ( ?y ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?b rdf:type ?y } . resource:Denmark property:anthem ?b } } . FILTER ( ?p < ?a ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16232584
P641
Q349
USER
Which sport was LA Revilla a part of ?
(Q16232584,P641,c(Q349))
action filter_type
action find
entity Q16232584
relation P641
type Q349
['Q16232584', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q16232584 property:P641 ?e . ?e rdf:type ontology:Q349 }
LA Revilla
action filter_type
action find
entity LA Revilla
relation sport
type sport
['LA Revilla', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:LA_Revilla property:sport ?e . ?e rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q16232584,P641,c(Q349))
action filter_type
action find
entity Q16232584
relation P641
type Q349
LA Revilla was the [ANSWER]
['Q16232584', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q16232584 property:P641 ?e . ?e rdf:type ontology:Q349 }
basketball
LA Revilla was the basketball
basketball
action filter_type
action find
entity LA Revilla
relation sport
type sport
['LA Revilla', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:LA_Revilla property:sport ?e . ?e rdf:type ontology:sport }
[]