Simple Question (Direct)
Simple Question
Q2935027
P21
Q290
USER
Which sex does Camille O'Sullivan belong to ?
(Q2935027,P21,c(Q290))
action filter_type
action find
entity Q2935027
relation P21
type Q290
['Q2935027', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q2935027 property:P21 ?i . ?i rdf:type ontology:Q290 }
Camille O'Sullivan
action filter_type
action find
entity Camille O'Sullivan
relation gender
type sex
["Camille O'Sullivan", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Camille_O'Sullivan property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q2935027,P21,c(Q290))
action filter_type
action find
entity Q2935027
relation P21
type Q290
Camille O'Sullivan belongs to [ANSWER]
['Q2935027', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q2935027 property:P21 ?i . ?i rdf:type ontology:Q290 }
female
Camille O'Sullivan belongs to female
female
action filter_type
action find
entity Camille O'Sullivan
relation gender
type sex
["Camille O'Sullivan", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Camille_O'Sullivan property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2935027
P106
Q12737077
USER
What are the job of Camille O'Sullivan ?
(Q2935027,P106,c(Q12737077))
action filter_type
action find
entity Q2935027
relation P106
type Q12737077
['Q2935027', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2935027 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Camille O'Sullivan
action filter_type
action find
entity Camille O'Sullivan
relation occupation
type occupation
["Camille O'Sullivan", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Camille_O'Sullivan property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q42973 Q1028181 Q33999
SYSTEM
architect, painter, actor
Q1028181 Q42973 Q33999 Q177220
(Q2935027,P106,c(Q12737077))
action filter_type
action find
entity Q2935027
relation P106
type Q12737077
The job of Camille O'Sullivan are the [ANSWERS]
['Q2935027', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2935027 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
painter architect actor singer
The job of Camille O'Sullivan are the architect, painter and actor
architect painter actor
action filter_type
action find
entity Camille O'Sullivan
relation occupation
type occupation
["Camille O'Sullivan", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Camille_O'Sullivan property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q442830
Q12737077
USER
And what about Ivan Urgant?
(Q442830,P106,c(Q12737077))
action filter_type
action find
entity Q442830
relation P106
type Q12737077
['Q442830', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q442830 property:P106 ?g }
Ivan Urgant
action filter_type
action find
entity Ivan Urgant
relation occupation
type occupation
['Ivan Urgant', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Ivan_Urgant property:occupation ?g }
[]
occupation
Q33999 Q947873
SYSTEM
actor, television presenter
Q33999 Q947873
(Q442830,P106,c(Q12737077))
action filter_type
action find
entity Q442830
relation P106
type Q12737077
[ANSWERS]
['Q442830', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q442830 property:P106 ?g }
actor television presenter
actor television presenter
action filter_type
action find
entity Ivan Urgant
relation occupation
type occupation
['Ivan Urgant', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Ivan_Urgant property:occupation ?g }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4997852
P106
Q502895
USER
Do Bunny Gibson have the profession as those occupations ?
(Q4997852,P106,Q33999) (Q4997852,P106,Q947873)
action is_in
entity prev_answer
action find
entity Q4997852
relation P106
['Q4997852', 'P106', 'Q33999'] ['Q4997852', 'P106', 'Q947873']
ASK WHERE { VALUES ( ?x ) { ( resource:Q33999 ) ( resource:Q947873 ) } . resource:Q4997852 property:P106 ?x }
Bunny Gibson
action is_in
entity prev_answer
action find
entity Bunny Gibson
relation occupation
['Bunny Gibson', 'occupation', 'actor'] ['Bunny Gibson', 'occupation', 'television presenter']
ASK WHERE { VALUES ( ?x ) { ( resource:actor ) ( resource:television_presenter ) } . resource:Bunny_Gibson property:occupation ?x }
[]
common name
SYSTEM
NO
(Q4997852,P106,Q33999) (Q4997852,P106,Q947873)
action is_in
entity prev_answer
action find
entity Q4997852
relation P106
[ANSWER]
['Q4997852', 'P106', 'Q33999'] ['Q4997852', 'P106', 'Q947873']
ASK WHERE { VALUES ( ?x ) { ( resource:Q33999 ) ( resource:Q947873 ) } . resource:Q4997852 property:P106 ?x }
No
action is_in
entity prev_answer
action find
entity Bunny Gibson
relation occupation
['Bunny Gibson', 'occupation', 'actor'] ['Bunny Gibson', 'occupation', 'television presenter']
ASK WHERE { VALUES ( ?x ) { ( resource:actor ) ( resource:television_presenter ) } . resource:Bunny_Gibson property:occupation ?x }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q178706 Q502895 Q12737077
USER
Which occupations did approximately 1 institutions and people appoint ?
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?b ) WHERE { { ?g property:P748 ?q . ?g rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q178706 . ?g property:P748 ?q } } GROUP BY ?g } . FILTER ( ?b = 1 ) }
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 common name
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?b ) WHERE { { ?g property:appointed_by ?q . ?g rdf:type ontology:occupation . ?q rdf:type ontology:common_name } UNION { ?g rdf:type ontology:occupation . ?q rdf:type ontology:institution . ?g property:appointed_by ?q } } GROUP BY ?g } . FILTER ( ?b = 1 ) }
[]
institution common name occupation
Q81066 Q25860233 Q3246797
SYSTEM
United Nations Secretary-General, Secretary of State for Exiting the European Union, Secretary of State for Transport
Q1846384 Q2631987 Q740126 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q835586 Q1161813 Q531471 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q862559 Q182762 Q8882 Q1060844 Q3397406 Q691615 Q152814 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q3315134 Q3777749 Q111784 Q634291 Q1362216 Q735587 Q81066 Q25860233
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
value 1
Approximately 1 institutions and people appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?b ) WHERE { { ?g property:P748 ?q . ?g rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q178706 . ?g property:P748 ?q } } GROUP BY ?g } . FILTER ( ?b = 1 ) }
Secretary of State for Wales Attorney General for England and Wales President of the European Parliament Secretary of State for Environment, Food and Rural Affairs Secretary of State for the Home Department Leader of the House of Lords Secretary of State for Work and Pensions Secretary of State for International Development Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia President of the United Nations General Assembly Chancellor of the Exchequer Leader of the House of Commons Speaker of the House of Commons Secretary of State for Business, Energy and Industrial Strategy List of Presidents of the Basque Autonomous Community Secretary of State for Education Prime Minister of Singapore Prime Minister of the Bahamas Prime Minister of Malaysia Prime Minister of Algeria President of the European Commission Paymaster General Secretary of State for Health Governor of the Virgin Islands Prime Minister of Malta Governor of Gibraltar Prime Minister of Georgia First Lord of the Treasury Prime Minister of Armenia Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland High Representative of the Union for Foreign Affairs and Security Policy First Minister of Scotland President of the European Council United Nations Secretary-General Secretary of State for Exiting the European Union
Approximately 1 institutions and people appointed by United Nations Secretary-General, Secretary of State for Exiting the European Union and Secretary of State for Transport
United Nations Secretary-General Secretary of State for Exiting the European Union Secretary of State for Transport
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 common name
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?b ) WHERE { { ?g property:appointed_by ?q . ?g rdf:type ontology:occupation . ?q rdf:type ontology:common_name } UNION { ?g rdf:type ontology:occupation . ?q rdf:type ontology:institution . ?g property:appointed_by ?q } } GROUP BY ?g } . FILTER ( ?b = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12006553 Q2935027
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Camille O'Sullivan or Tobias Santelmann ?
OR((Q2935027,P27,c(Q15617994)), (Q12006553,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2935027
relation P27
action find
entity Q12006553
relation P27
type Q15617994
{'OR': [['Q2935027', 'P27', {'concept': 'Q15617994'}], ['Q12006553', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q12006553 property:P27 ?u } UNION { resource:Q2935027 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Tobias Santelmann Camille O'Sullivan
action filter_type
action union
action find
entity Camille O'Sullivan
relation country of citizenship
action find
entity Tobias Santelmann
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [["Camille O'Sullivan", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tobias Santelmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Tobias_Santelmann property:country_of_citizenship ?u } UNION { resource:Camille_O'Sullivan property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q27
SYSTEM
Norway, Ireland
Q20 Q27
OR((Q2935027,P27,c(Q15617994)), (Q12006553,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2935027
relation P27
action find
entity Q12006553
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Camille O'Sullivan or Tobias Santelmann
{'OR': [['Q2935027', 'P27', {'concept': 'Q15617994'}], ['Q12006553', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q12006553 property:P27 ?u } UNION { resource:Q2935027 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Norway Ireland
Norway and Ireland are the countries of citizenship of Camille O'Sullivan or Tobias Santelmann
Norway Ireland
action filter_type
action union
action find
entity Camille O'Sullivan
relation country of citizenship
action find
entity Tobias Santelmann
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [["Camille O'Sullivan", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tobias Santelmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Tobias_Santelmann property:country_of_citizenship ?u } UNION { resource:Camille_O'Sullivan property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6762814
P27
Q502895
USER
Are Marie Curtin a native of those administrative territories ?
(Q6762814,P27,Q20) (Q6762814,P27,Q27)
action is_in
entity prev_answer
action find
entity Q6762814
relation P27
['Q6762814', 'P27', 'Q20'] ['Q6762814', 'P27', 'Q27']
ASK WHERE { VALUES ( ?j ) { ( resource:Q20 ) ( resource:Q27 ) } . resource:Q6762814 property:P27 ?j }
Marie Curtin
action is_in
entity prev_answer
action find
entity Marie Curtin
relation country of citizenship
['Marie Curtin', 'country of citizenship', 'Norway'] ['Marie Curtin', 'country of citizenship', 'Ireland']
ASK WHERE { VALUES ( ?j ) { ( resource:Norway ) ( resource:Ireland ) } . resource:Marie_Curtin property:country_of_citizenship ?j }
[]
common name
SYSTEM
YES
(Q6762814,P27,Q20) (Q6762814,P27,Q27)
action is_in
entity prev_answer
action find
entity Q6762814
relation P27
[ANSWER]
['Q6762814', 'P27', 'Q20'] ['Q6762814', 'P27', 'Q27']
ASK WHERE { VALUES ( ?j ) { ( resource:Q20 ) ( resource:Q27 ) } . resource:Q6762814 property:P27 ?j }
Yes
action is_in
entity prev_answer
action find
entity Marie Curtin
relation country of citizenship
['Marie Curtin', 'country of citizenship', 'Norway'] ['Marie Curtin', 'country of citizenship', 'Ireland']
ASK WHERE { VALUES ( ?j ) { ( resource:Norway ) ( resource:Ireland ) } . resource:Marie_Curtin property:country_of_citizenship ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P17
Q15617994
USER
Which administrative territory is Norway situated in ?
(Q20,P17,c(Q15617994))
action filter_type
action find
entity Q20
relation P17
type Q15617994
['Q20', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q20 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Norway
action filter_type
action find
entity Norway
relation country
type designation for an administrative territorial entity
['Norway', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Norway property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q20,P17,c(Q15617994))
action filter_type
action find
entity Q20
relation P17
type Q15617994
[ANSWER] is situated in [ANSWER]
['Q20', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q20 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Norway
Norway is situated in Norway
Norway
action filter_type
action find
entity Norway
relation country
type designation for an administrative territorial entity
['Norway', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Norway property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q20 Q4428619 Q2065373
P530
Q1048835
USER
Does that administrative territory have tactful political relations with Solone and Cláudia ?
(Q20,P530,Q4428619) (Q20,P530,Q2065373)
action is_in
entity Q20
action intersection
action find_reverse
entity Q4428619
relation P530
action find_reverse
entity Q2065373
relation P530
['Q20', 'P530', 'Q4428619'] ['Q20', 'P530', 'Q2065373']
ASK WHERE { resource:Q20 property:P530 resource:Q4428619 . resource:Q20 property:P530 resource:Q2065373 }
Norway Solone Cláudia
action is_in
entity Norway
action intersection
action find_reverse
entity Solone
relation diplomatic relation
action find_reverse
entity Cláudia
relation diplomatic relation
['Norway', 'diplomatic relation', 'Solone'] ['Norway', 'diplomatic relation', 'Cláudia']
ASK WHERE { resource:Norway property:diplomatic_relation resource:Solone . resource:Norway property:diplomatic_relation resource:Cláudia }
[]
political territorial entity
SYSTEM
NO
(Q20,P530,Q4428619) (Q20,P530,Q2065373)
action is_in
entity Q20
action intersection
action find_reverse
entity Q4428619
relation P530
action find_reverse
entity Q2065373
relation P530
[ANSWER]
['Q20', 'P530', 'Q4428619'] ['Q20', 'P530', 'Q2065373']
ASK WHERE { resource:Q20 property:P530 resource:Q4428619 . resource:Q20 property:P530 resource:Q2065373 }
No
action is_in
entity Norway
action intersection
action find_reverse
entity Solone
relation diplomatic relation
action find_reverse
entity Cláudia
relation diplomatic relation
['Norway', 'diplomatic relation', 'Solone'] ['Norway', 'diplomatic relation', 'Cláudia']
ASK WHERE { resource:Norway property:diplomatic_relation resource:Solone . resource:Norway property:diplomatic_relation resource:Cláudia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q20
P530
Q1048835
USER
How many political territories holds diplomatic relationship with Norway ?
(Q20,P530,c(Q1048835))
action count
action filter_type
action find
entity Q20
relation P530
type Q1048835
['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Q20 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Norway
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Norway property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q408 Q16 Q183
(Q20,P530,c(Q1048835))
action count
action filter_type
action find
entity Q20
relation P530
type Q1048835
[ANSWER]
['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Q20 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Australia Canada Germany
3
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Norway property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]