Simple Question (Direct)
Simple Question
Q5216389
P106
Q12737077
USER
What is the job of Daniel Alexandru David ?
(Q5216389,P106,c(Q12737077))
action filter_type
action find
entity Q5216389
relation P106
type Q12737077
['Q5216389', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5216389 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Daniel Alexandru David
action filter_type
action find
entity Daniel Alexandru David
relation occupation
type occupation
['Daniel Alexandru David', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Daniel_Alexandru_David property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5216389,P106,c(Q12737077))
action filter_type
action find
entity Q5216389
relation P106
type Q12737077
The job of Daniel Alexandru David is an [ANSWER]
['Q5216389', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5216389 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
association football player
The job of Daniel Alexandru David is an association football player
association football player
action filter_type
action find
entity Daniel Alexandru David
relation occupation
type occupation
['Daniel Alexandru David', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Daniel_Alexandru_David property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5216389
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q5216389
relation P27
type Q15617994
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q5216389 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Daniel Alexandru David
action filter_type
action find
entity Daniel Alexandru David
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Daniel_Alexandru_David property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q5216389
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q5216389 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Romania
Romania is that person an inhabitant of
Romania
action filter_type
action find
entity Daniel Alexandru David
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Daniel_Alexandru_David property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q218
P530
Q1048835
USER
Which political territories have diplomatic associations with that administrative territory ?
(c(Q1048835),P530,Q218)
action filter_type
action find
entity Q218
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q218']
SELECT DISTINCT ?l WHERE { resource:Q218 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Romania
action filter_type
action find
entity Romania
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Romania']
SELECT DISTINCT ?l WHERE { resource:Romania property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
(c(Q1048835),P530,Q218)
action filter_type
action find
entity Q218
relation P530
type Q1048835
[ANSWERS] have diplomatic associations with that administrative territory
[{'concept': 'Q1048835'}, 'P530', 'Q218']
SELECT DISTINCT ?l WHERE { resource:Q218 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Canada Australia Germany
Canada, Australia and Germany have diplomatic associations with that administrative territory
Canada Australia Germany
action filter_type
action find
entity Romania
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Romania']
SELECT DISTINCT ?l WHERE { resource:Romania property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q218
P276
Q8065
USER
What is situated at that administrative territory ?
(c(Q8065),P276,Q16) (c(Q8065),P276,Q408) (c(Q8065),P276,Q183)
action filter_type
action find_reverse
entity Q218
relation P276
type Q8065
[{'concept': 'Q8065'}, 'P276', 'Q16'] [{'concept': 'Q8065'}, 'P276', 'Q408'] [{'concept': 'Q8065'}, 'P276', 'Q183']
SELECT DISTINCT ?w WHERE { ?w property:P276 resource:Q218 . ?w rdf:type ontology:Q8065 }
Romania
action filter_type
action find_reverse
entity Romania
relation location
type natural disaster
[{'concept': 'natural disaster'}, 'location', 'Canada'] [{'concept': 'natural disaster'}, 'location', 'Australia'] [{'concept': 'natural disaster'}, 'location', 'Germany']
SELECT DISTINCT ?w WHERE { ?w property:location resource:Romania . ?w rdf:type ontology:natural_disaster }
[]
natural disaster
Q24287229
SYSTEM
2016 European floods
Q24287229
(c(Q8065),P276,Q16) (c(Q8065),P276,Q408) (c(Q8065),P276,Q183)
action filter_type
action find_reverse
entity Q218
relation P276
type Q8065
[ANSWER] is situated at that administrative territory
[{'concept': 'Q8065'}, 'P276', 'Q16'] [{'concept': 'Q8065'}, 'P276', 'Q408'] [{'concept': 'Q8065'}, 'P276', 'Q183']
SELECT DISTINCT ?w WHERE { ?w property:P276 resource:Q218 . ?w rdf:type ontology:Q8065 }
2016 European floods
2016 European floods is situated at that administrative territory
2016 European floods
action filter_type
action find_reverse
entity Romania
relation location
type natural disaster
[{'concept': 'natural disaster'}, 'location', 'Canada'] [{'concept': 'natural disaster'}, 'location', 'Australia'] [{'concept': 'natural disaster'}, 'location', 'Germany']
SELECT DISTINCT ?w WHERE { ?w property:location resource:Romania . ?w rdf:type ontology:natural_disaster }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q483247 Q8065
USER
Which phenomena leads to exactly 1 natural disaster ?
(c(Q8065),P828,c(Q483247))
action equal
action find_reverse_tuple_counts
relation P828
type Q483247
type Q8065
value 1
[{'concept': 'Q8065'}, 'P828', {'concept': 'Q483247'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:P828 ?e . ?e rdf:type ontology:Q483247 . ?n rdf:type ontology:Q8065 } GROUP BY ?e } . FILTER ( ?j = 1 ) }
action equal
action find_reverse_tuple_counts
relation has cause
type phenomenon
type natural disaster
value 1
[{'concept': 'natural disaster'}, 'has cause', {'concept': 'phenomenon'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:has_cause ?e . ?e rdf:type ontology:phenomenon . ?n rdf:type ontology:natural_disaster } GROUP BY ?e } . FILTER ( ?j = 1 ) }
[]
phenomenon natural disaster
Q7944 Q7925
SYSTEM
earthquake, rain
Q7944 Q7925
(c(Q8065),P828,c(Q483247))
action equal
action find_reverse_tuple_counts
relation P828
type Q483247
type Q8065
value 1
The [ANSWERS] lead to exactly 1 natural disaster
[{'concept': 'Q8065'}, 'P828', {'concept': 'Q483247'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:P828 ?e . ?e rdf:type ontology:Q483247 . ?n rdf:type ontology:Q8065 } GROUP BY ?e } . FILTER ( ?j = 1 ) }
earthquake rain
The earthquake and rain lead to exactly 1 natural disaster
earthquake rain
action equal
action find_reverse_tuple_counts
relation has cause
type phenomenon
type natural disaster
value 1
[{'concept': 'natural disaster'}, 'has cause', {'concept': 'phenomenon'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:has_cause ?e . ?e rdf:type ontology:phenomenon . ?n rdf:type ontology:natural_disaster } GROUP BY ?e } . FILTER ( ?j = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q178706 Q895526 Q12737077
USER
How many occupations are appointed by around 1 institutions and authority organs ?
(c(Q12737077),P748,c(Q178706)|c(Q895526))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q895526
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?n ) WHERE { { ?h property:P748 ?x . ?h rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q178706 } UNION { ?h property:P748 ?x . ?h rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q895526 } } GROUP BY ?h } . FILTER ( ?n = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type authority organ
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?n ) WHERE { { ?h property:appointed_by ?x . ?h rdf:type ontology:occupation . ?x rdf:type ontology:institution } UNION { ?h property:appointed_by ?x . ?h rdf:type ontology:occupation . ?x rdf:type ontology:authority_organ } } GROUP BY ?h } . FILTER ( ?n = 1 ) }
[]
institution authority organ occupation
SYSTEM
37
Q2666591 Q1072417 Q2287650 Q5333410 Q261746 Q740126 Q1029955 Q642859 Q967762 Q1161813 Q940135 Q2305968 Q7444340 Q2419581 Q25863345 Q2747647 Q13645132 Q636207 Q2003296 Q967750 Q8882 Q783785 Q1072415 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q967737 Q6542448 Q2301213 Q634291 Q735587 Q81066 Q1658460 Q786242 Q1434880
(c(Q12737077),P748,c(Q178706)|c(Q895526))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q895526
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?n ) WHERE { { ?h property:P748 ?x . ?h rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q178706 } UNION { ?h property:P748 ?x . ?h rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q895526 } } GROUP BY ?h } . FILTER ( ?n = 1 ) }
Chair of the Federal Reserve Chief of Staff of the United States Air Force United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force President of the European Parliament United States Secretary of Agriculture United States Secretary of Homeland Security United States Secretary of Education President of the United Nations General Assembly United States Secretary of the Navy United States Secretary of Health and Human Services Secretary of State for Dominion Affairs United States Secretary of Housing and Urban Development Secretary of State for International Trade Secretary of State for Defence Lord Mayor of Dublin United States Attorney General United States Secretary of Commerce United States Secretary of Labor President of the European Commission Chief of Staff of the United States Army Chief of Naval Operations Chairman of the Joint Chiefs of Staff United States Secretary of the Army United States Secretary of Defense United States Secretary of Energy United States Deputy Secretary of Defense United States Secretary of Transportation Librarian of Congress United States Deputy Secretary of State High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General United States Secretary of Veterans Affairs White House Chief of Staff Surgeon General of the United States
37
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type authority organ
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?n ) WHERE { { ?h property:appointed_by ?x . ?h rdf:type ontology:occupation . ?x rdf:type ontology:institution } UNION { ?h property:appointed_by ?x . ?h rdf:type ontology:occupation . ?x rdf:type ontology:authority_organ } } GROUP BY ?h } . FILTER ( ?n = 1 ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q17466998 Q408
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Australia and are not the countries of citizenship of Fahrettin Erdoğan ?
AND((Q408,P530,c(Q15617994)), NOT((Q17466998,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q408
relation P530
action find
entity Q17466998
relation P27
type Q15617994
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q17466998', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q408 property:P530 ?g . MINUS { resource:Q17466998 property:P27 ?g } }
Fahrettin Erdoğan Australia
action filter_type
action difference
action find
entity Australia
relation diplomatic relation
action find
entity Fahrettin Erdoğan
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Fahrettin Erdoğan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Australia property:diplomatic_relation ?g . MINUS { resource:Fahrettin_Erdoğan property:country_of_citizenship ?g } }
[]
designation for an administrative territorial entity
Q117 Q39 Q574 Q711 Q252 Q697 Q869 Q20 Q159 Q224
SYSTEM
Some of them are Ghana, Switzerland, East Timor, Mongolia, Indonesia, Nauru, Thailand, Norway, Russia, Croatia
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
AND((Q408,P530,c(Q15617994)), NOT((Q17466998,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q408
relation P530
action find
entity Q17466998
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Australia and are not the countries of citizenship of Fahrettin Erdoğan
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q17466998', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q408 property:P530 ?g . MINUS { resource:Q17466998 property:P27 ?g } }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Ghana, Switzerland, East Timor, Mongolia, Indonesia, Nauru, Thailand, Norway, Russia and Croatia have a diplomatic relationship with Australia and are not the countries of citizenship of Fahrettin Erdoğan
Ghana Switzerland East Timor Mongolia Indonesia Nauru Thailand Norway Russia Croatia
action filter_type
action difference
action find
entity Australia
relation diplomatic relation
action find
entity Fahrettin Erdoğan
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Fahrettin Erdoğan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Australia property:diplomatic_relation ?g . MINUS { resource:Fahrettin_Erdoğan property:country_of_citizenship ?g } }
[]