Simple Question (Direct)
Simple Question
Q2830187
P19
Q56061
USER
Which administrative territory is the birthplace of Alain Prochiantz ?
(Q2830187,P19,c(Q56061))
action filter_type
action find
entity Q2830187
relation P19
type Q56061
['Q2830187', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q2830187 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Alain Prochiantz
action filter_type
action find
entity Alain Prochiantz
relation place of birth
type administrative territorial entity
['Alain Prochiantz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Alain_Prochiantz property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q2830187,P19,c(Q56061))
action filter_type
action find
entity Q2830187
relation P19
type Q56061
[ANSWER] is the birthplace of Alain Prochiantz
['Q2830187', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q2830187 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Paris
Paris is the birthplace of Alain Prochiantz
Paris
action filter_type
action find
entity Alain Prochiantz
relation place of birth
type administrative territorial entity
['Alain Prochiantz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Alain_Prochiantz property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2830187
P108
Q41176
USER
Which building is the workplace of that person ?
(Q90,P108,c(Q41176))
action filter_type
action find
entity Q2830187
relation P108
type Q41176
['Q90', 'P108', {'concept': 'Q41176'}]
SELECT DISTINCT ?g WHERE { resource:Q2830187 property:P108 ?g . ?g rdf:type ontology:Q41176 }
Alain Prochiantz
action filter_type
action find
entity Alain Prochiantz
relation employer
type building
['Paris', 'employer', {'concept': 'building'}]
SELECT DISTINCT ?g WHERE { resource:Alain_Prochiantz property:employer ?g . ?g rdf:type ontology:building }
[]
building
Q202660
SYSTEM
Collège de France
Q202660
(Q90,P108,c(Q41176))
action filter_type
action find
entity Q2830187
relation P108
type Q41176
[ANSWER] is the workplace of that person
['Q90', 'P108', {'concept': 'Q41176'}]
SELECT DISTINCT ?g WHERE { resource:Q2830187 property:P108 ?g . ?g rdf:type ontology:Q41176 }
Collège de France
Collège de France is the workplace of that person
Collège de France
action filter_type
action find
entity Alain Prochiantz
relation employer
type building
['Paris', 'employer', {'concept': 'building'}]
SELECT DISTINCT ?g WHERE { resource:Alain_Prochiantz property:employer ?g . ?g rdf:type ontology:building }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P669
Q811979 Q34442
USER
How many architectural structures or roads are that building located ?
(Q202660,P669,c(Q811979)) (Q202660,P669,c(Q34442)) (Q202660,P669,c(Q811979)) (Q202660,P669,c(Q34442))
action count
action union
action filter_type
action find
entity Q202660
relation P669
type Q811979
action filter_type
action find
entity Q202660
relation P669
type Q34442
['Q202660', 'P669', {'concept': 'Q811979'}] ['Q202660', 'P669', {'concept': 'Q34442'}] ['Q202660', 'P669', {'concept': 'Q811979'}] ['Q202660', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { resource:Q202660 property:P669 ?c . ?c rdf:type ontology:Q811979 } UNION { resource:Q202660 property:P669 ?c . ?c rdf:type ontology:Q34442 } }
action count
action union
action filter_type
action find
entity Collège de France
relation located on street
type architectural structure
action filter_type
action find
entity Collège de France
relation located on street
type road
['Collège de France', 'located on street', {'concept': 'architectural structure'}] ['Collège de France', 'located on street', {'concept': 'road'}] ['Collège de France', 'located on street', {'concept': 'architectural structure'}] ['Collège de France', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { resource:Collège_de_France property:located_on_street ?c . ?c rdf:type ontology:architectural_structure } UNION { resource:Collège_de_France property:located_on_street ?c . ?c rdf:type ontology:road } }
[]
architectural structure road
SYSTEM
2
Q1356926 Q3389966
(Q202660,P669,c(Q811979)) (Q202660,P669,c(Q34442)) (Q202660,P669,c(Q811979)) (Q202660,P669,c(Q34442))
action count
action union
action filter_type
action find
entity Q202660
relation P669
type Q811979
action filter_type
action find
entity Q202660
relation P669
type Q34442
[ANSWER]
['Q202660', 'P669', {'concept': 'Q811979'}] ['Q202660', 'P669', {'concept': 'Q34442'}] ['Q202660', 'P669', {'concept': 'Q811979'}] ['Q202660', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { resource:Q202660 property:P669 ?c . ?c rdf:type ontology:Q811979 } UNION { resource:Q202660 property:P669 ?c . ?c rdf:type ontology:Q34442 } }
Rue Saint-Jacques, Paris place Marcelin-Berthelot
2
action count
action union
action filter_type
action find
entity Collège de France
relation located on street
type architectural structure
action filter_type
action find
entity Collège de France
relation located on street
type road
['Collège de France', 'located on street', {'concept': 'architectural structure'}] ['Collège de France', 'located on street', {'concept': 'road'}] ['Collège de France', 'located on street', {'concept': 'architectural structure'}] ['Collège de France', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { resource:Collège_de_France property:located_on_street ?c . ?c rdf:type ontology:architectural_structure } UNION { resource:Collège_de_France property:located_on_street ?c . ?c rdf:type ontology:road } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2830187
P21
Q290
USER
Which sex does Alain Prochiantz have ?
(Q2830187,P21,c(Q290))
action filter_type
action find
entity Q2830187
relation P21
type Q290
['Q2830187', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2830187 property:P21 ?p . ?p rdf:type ontology:Q290 }
Alain Prochiantz
action filter_type
action find
entity Alain Prochiantz
relation gender
type sex
['Alain Prochiantz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Alain_Prochiantz property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2830187,P21,c(Q290))
action filter_type
action find
entity Q2830187
relation P21
type Q290
Alain Prochiantz has a [ANSWER]
['Q2830187', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2830187 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
Alain Prochiantz has a male
male
action filter_type
action find
entity Alain Prochiantz
relation gender
type sex
['Alain Prochiantz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Alain_Prochiantz property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2830187
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q2830187
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q2830187 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Alain Prochiantz
action filter_type
action find
entity Alain Prochiantz
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Alain_Prochiantz property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q2830187
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q2830187 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
France
The France is that person an inhabitant of
France
action filter_type
action find
entity Alain Prochiantz
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Alain_Prochiantz property:country_of_citizenship ?m . ?m 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
Q142 Q7711 Q21055267
P6
Q502895
USER
Does that administrative territory have its government headed by Jean-Marc Ayrault and Anna Moring ?
(Q142,P6,Q7711) (Q142,P6,Q21055267)
action is_in
entity Q142
action intersection
action find_reverse
entity Q7711
relation P6
action find_reverse
entity Q21055267
relation P6
['Q142', 'P6', 'Q7711'] ['Q142', 'P6', 'Q21055267']
ASK WHERE { resource:Q142 property:P6 resource:Q7711 . resource:Q142 property:P6 resource:Q21055267 }
France Jean-Marc Ayrault Anna Moring
action is_in
entity France
action intersection
action find_reverse
entity Jean-Marc Ayrault
relation head of government
action find_reverse
entity Anna Moring
relation head of government
['France', 'head of government', 'Jean-Marc Ayrault'] ['France', 'head of government', 'Anna Moring']
ASK WHERE { resource:France property:head_of_government resource:Jean-Marc_Ayrault . resource:France property:head_of_government resource:Anna_Moring }
[]
common name
SYSTEM
YES and NO respectively
(Q142,P6,Q7711) (Q142,P6,Q21055267)
action is_in
entity Q142
action intersection
action find_reverse
entity Q7711
relation P6
action find_reverse
entity Q21055267
relation P6
[ANSWER]
['Q142', 'P6', 'Q7711'] ['Q142', 'P6', 'Q21055267']
ASK WHERE { resource:Q142 property:P6 resource:Q7711 . resource:Q142 property:P6 resource:Q21055267 }
YES and NO respectively
action is_in
entity France
action intersection
action find_reverse
entity Jean-Marc Ayrault
relation head of government
action find_reverse
entity Anna Moring
relation head of government
['France', 'head of government', 'Jean-Marc Ayrault'] ['France', 'head of government', 'Anna Moring']
ASK WHERE { resource:France property:head_of_government resource:Jean-Marc_Ayrault . resource:France property:head_of_government resource:Anna_Moring }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3679945 Q2830187
P106
Q12737077
USER
Which occupations do Alain Prochiantz or Claudio Bincaz do for a living ?
OR((Q2830187,P106,c(Q12737077)), (Q3679945,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2830187
relation P106
action find
entity Q3679945
relation P106
type Q12737077
{'OR': [['Q2830187', 'P106', {'concept': 'Q12737077'}], ['Q3679945', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?x WHERE { { ?f property:P106 ?x . VALUES ( ?f ) { ( resource:Q2830187 ) ( resource:Q3679945 ) } } . ?x rdf:type ontology:Q12737077 }
Claudio Bincaz Alain Prochiantz
action filter_type
action union
action find
entity Alain Prochiantz
relation occupation
action find
entity Claudio Bincaz
relation occupation
type occupation
{'OR': [['Alain Prochiantz', 'occupation', {'concept': 'occupation'}], ['Claudio Bincaz', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?x WHERE { { ?f property:occupation ?x . VALUES ( ?f ) { ( resource:Alain_Prochiantz ) ( resource:Claudio_Bincaz ) } } . ?x rdf:type ontology:occupation }
[]
occupation
Q14089670 Q20739288 Q937857
SYSTEM
rugby union player, neurobiologist, association football player
Q14089670 Q20739288 Q937857
OR((Q2830187,P106,c(Q12737077)), (Q3679945,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2830187
relation P106
action find
entity Q3679945
relation P106
type Q12737077
Alain Prochiantz or Claudio Bincaz do for a living a [ANSWERS]
{'OR': [['Q2830187', 'P106', {'concept': 'Q12737077'}], ['Q3679945', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?x WHERE { { ?f property:P106 ?x . VALUES ( ?f ) { ( resource:Q2830187 ) ( resource:Q3679945 ) } } . ?x rdf:type ontology:Q12737077 }
rugby union player neurobiologist association football player
Alain Prochiantz or Claudio Bincaz do for a living a rugby union player, neurobiologist and association football player
rugby union player neurobiologist association football player
action filter_type
action union
action find
entity Alain Prochiantz
relation occupation
action find
entity Claudio Bincaz
relation occupation
type occupation
{'OR': [['Alain Prochiantz', 'occupation', {'concept': 'occupation'}], ['Claudio Bincaz', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?x WHERE { { ?f property:occupation ?x . VALUES ( ?f ) { ( resource:Alain_Prochiantz ) ( resource:Claudio_Bincaz ) } } . ?x rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q502895 Q178706 Q12737077
USER
Which occupations did around 1 people and institutions appoint ?
(c(Q12737077),P748,c(Q502895)|c(Q178706))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q178706
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?k WHERE { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q178706 ) } } GROUP BY ?k } }
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type institution
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'institution'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?k WHERE { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:common_name ) ( ontology:institution ) } } GROUP BY ?k } }
[]
common name institution 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(Q502895)|c(Q178706))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q178706
value 1
Around 1 people and institutions appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?k WHERE { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q178706 ) } } GROUP BY ?k } }
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
Around 1 people and institutions 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 common name
action find_tuple_counts
relation appointed by
type occupation
type institution
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'institution'}]]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?k WHERE { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:common_name ) ( ontology:institution ) } } GROUP BY ?k } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q81066 Q25860233 Q3246797
P39
Q502895
USER
Who were responsible for occupying the position of those occupations ?
(c(Q502895),P39,Q81066) (c(Q502895),P39,Q25860233) (c(Q502895),P39,Q3246797)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q81066'] [{'concept': 'Q502895'}, 'P39', 'Q25860233'] [{'concept': 'Q502895'}, 'P39', 'Q3246797']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . VALUES ( ?f ) { ( resource:Q1846384 ) ( resource:Q2631987 ) ( resource:Q740126 ) } . ?c property:P39 ?f }
United Nations Secretary-General Secretary of State for Exiting the European Union Secretary of State for Transport
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'United Nations Secretary-General'] [{'concept': 'common name'}, 'position held', 'Secretary of State for Exiting the European Union'] [{'concept': 'common name'}, 'position held', 'Secretary of State for Transport']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . VALUES ( ?f ) { ( resource:Secretary_of_State_for_Wales ) ( resource:Attorney_General_for_England_and_Wales ) ( resource:President_of_the_European_Parliament ) } . ?c property:position_held ?f }
[]
common name
Q1254 Q2883936 Q1260
SYSTEM
Kofi Annan, Barbara Castle, Baroness Castle of Blackburn, Kurt Waldheim
Q1259 Q1257 Q1254 Q1253 Q1260 Q1267 Q1264 Q1271 Q1275 Q311440 Q300023 Q1555319 Q93557 Q332837 Q333312 Q1700212 Q334362 Q272644 Q389677 Q334198 Q122522 Q5393524 Q2883936 Q324805 Q333128 Q259836 Q333487 Q296639 Q332987 Q337453 Q333259 Q333410 Q333267 Q332919 Q3069915 Q327810 Q259106 Q332940 Q332385
(c(Q502895),P39,Q81066) (c(Q502895),P39,Q25860233) (c(Q502895),P39,Q3246797)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of those occupations
[{'concept': 'Q502895'}, 'P39', 'Q81066'] [{'concept': 'Q502895'}, 'P39', 'Q25860233'] [{'concept': 'Q502895'}, 'P39', 'Q3246797']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . VALUES ( ?f ) { ( resource:Q1846384 ) ( resource:Q2631987 ) ( resource:Q740126 ) } . ?c property:P39 ?f }
Javier Pérez de Cuéllar Boutros Boutros-Ghali Kofi Annan Ban Ki-moon Kurt Waldheim Dag Hammarskjöld U Thant Trygve Lie Gladwyn Jebb António Guterres David Davis Gus Macdonald John Moore, Baron Moore of Lower Marsh Stephen Byers Tom King, Baron King of Bridgwater John Gilbert, Baron Gilbert Fred Mulley Ruth Kelly John Spellar John Baird, 1st Viscount Stonehaven Leslie Hore-Belisha, 1st Baron Hore-Belisha Ernest Marples Barbara Castle, Baroness Castle of Blackburn Nicholas Ridley, Baron Ridley of Liddesdale Gavin Strang Sir George Young Malcolm Rifkind Alistair Darling Philip Hammond Chris Grayling William Rodgers, Baron Rodgers of Quarry Bank Brian Mawhinney, Baron Mawhinney Patrick McLoughlin Norman Fowler Paul Channon, Baron Kelvedon Cecil Parkinson Douglas Alexander John MacGregor, Baron MacGregor of Pulham Market Geoff Hoon
Kofi Annan, Barbara Castle, Baroness Castle of Blackburn and Kurt Waldheim were responsible for occupying the position of those occupations
Kofi Annan Barbara Castle, Baroness Castle of Blackburn Kurt Waldheim
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'United Nations Secretary-General'] [{'concept': 'common name'}, 'position held', 'Secretary of State for Exiting the European Union'] [{'concept': 'common name'}, 'position held', 'Secretary of State for Transport']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . VALUES ( ?f ) { ( resource:Secretary_of_State_for_Wales ) ( resource:Attorney_General_for_England_and_Wales ) ( resource:President_of_the_European_Parliament ) } . ?c property:position_held ?f }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1254 Q2883936 Q1260
P21
Q290
USER
Which sexes do those people possess ?
(Q1254,P21,c(Q290)) (Q2883936,P21,c(Q290)) (Q1260,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q1254', 'P21', {'concept': 'Q290'}] ['Q2883936', 'P21', {'concept': 'Q290'}] ['Q1260', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?z property:P21 ?u . ?u rdf:type ontology:Q290 . VALUES ( ?z ) { ( resource:Q1259 ) ( resource:Q1257 ) ( resource:Q1254 ) } }
Kofi Annan Barbara Castle, Baroness Castle of Blackburn Kurt Waldheim
action filter_type
action find
entity prev_answer
relation gender
type sex
['Kofi Annan', 'gender', {'concept': 'sex'}] ['Barbara Castle, Baroness Castle of Blackburn', 'gender', {'concept': 'sex'}] ['Kurt Waldheim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?z property:gender ?u . ?u rdf:type ontology:sex . VALUES ( ?z ) { ( resource:Javier_Pérez_de_Cuéllar ) ( resource:Boutros_Boutros-Ghali ) ( resource:Kofi_Annan ) } }
[]
sex
Q6581097 Q6581072 Q6581097
SYSTEM
male for 1st, 3rd, female for 2nd
Q6581097 Q6581072 Q6581097
(Q1254,P21,c(Q290)) (Q2883936,P21,c(Q290)) (Q1260,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q1254', 'P21', {'concept': 'Q290'}] ['Q2883936', 'P21', {'concept': 'Q290'}] ['Q1260', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?z property:P21 ?u . ?u rdf:type ontology:Q290 . VALUES ( ?z ) { ( resource:Q1259 ) ( resource:Q1257 ) ( resource:Q1254 ) } }
male female male
Those people possess a male, female and male
male female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Kofi Annan', 'gender', {'concept': 'sex'}] ['Barbara Castle, Baroness Castle of Blackburn', 'gender', {'concept': 'sex'}] ['Kurt Waldheim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?z property:gender ?u . ?u rdf:type ontology:sex . VALUES ( ?z ) { ( resource:Javier_Pérez_de_Cuéllar ) ( resource:Boutros_Boutros-Ghali ) ( resource:Kofi_Annan ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1254
P463
Q811430
USER
What construction had Kofi Annan as its member?
(Q6581097,P463,c(Q811430)) (Q6581072,P463,c(Q811430)) (Q6581097,P463,c(Q811430))
action filter_type
action find
entity Q1254
relation P463
type Q811430
['Q6581097', 'P463', {'concept': 'Q811430'}] ['Q6581072', 'P463', {'concept': 'Q811430'}] ['Q6581097', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?e WHERE { resource:Q1254 property:P463 ?e . ?e rdf:type ontology:Q811430 }
Kofi Annan
action filter_type
action find
entity Kofi Annan
relation member of
type construction
['male', 'member of', {'concept': 'construction'}] ['female', 'member of', {'concept': 'construction'}] ['male', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?e WHERE { resource:Kofi_Annan property:member_of ?e . ?e rdf:type ontology:construction }
[]
construction
Q463303
SYSTEM
American Academy of Arts and Sciences
Q463303
(Q6581097,P463,c(Q811430)) (Q6581072,P463,c(Q811430)) (Q6581097,P463,c(Q811430))
action filter_type
action find
entity Q1254
relation P463
type Q811430
[ANSWER] had Kofi Annan as its member
['Q6581097', 'P463', {'concept': 'Q811430'}] ['Q6581072', 'P463', {'concept': 'Q811430'}] ['Q6581097', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?e WHERE { resource:Q1254 property:P463 ?e . ?e rdf:type ontology:Q811430 }
American Academy of Arts and Sciences
American Academy of Arts and Sciences had Kofi Annan as its member
American Academy of Arts and Sciences
action filter_type
action find
entity Kofi Annan
relation member of
type construction
['male', 'member of', {'concept': 'construction'}] ['female', 'member of', {'concept': 'construction'}] ['male', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?e WHERE { resource:Kofi_Annan property:member_of ?e . ?e rdf:type ontology:construction }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1254
P26
Q502895
USER
How many people are married to Kofi Annan ?
(c(Q502895),P26,Q1254)
action count
action filter_type
action find_reverse
entity Q1254
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1254']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y rdf:type ontology:Q502895 . ?y property:P26 resource:Q1254 }
Kofi Annan
action count
action filter_type
action find_reverse
entity Kofi Annan
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Kofi Annan']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y rdf:type ontology:common_name . ?y property:spouse resource:Kofi_Annan }
[]
common name
SYSTEM
1
Q3742229
(c(Q502895),P26,Q1254)
action count
action filter_type
action find_reverse
entity Q1254
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q1254']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y rdf:type ontology:Q502895 . ?y property:P26 resource:Q1254 }
Nane Annan
1
action count
action filter_type
action find_reverse
entity Kofi Annan
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Kofi Annan']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y rdf:type ontology:common_name . ?y property:spouse resource:Kofi_Annan }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1260
P734
Q82799
USER
Who is associated with Kurt Waldheim ?
(Q1260,P734,c(Q82799))
action filter_type
action find
entity Q1260
relation P734
type Q82799
['Q1260', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q82799 . resource:Q1260 property:P734 ?m }
Kurt Waldheim
action filter_type
action find
entity Kurt Waldheim
relation family name
type name
['Kurt Waldheim', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:name . resource:Kurt_Waldheim property:family_name ?m }
[]
name
Q22969068
SYSTEM
Waldheim
Q22969068
(Q1260,P734,c(Q82799))
action filter_type
action find
entity Q1260
relation P734
type Q82799
[ANSWER] is associated with Kurt [ANSWER]
['Q1260', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q82799 . resource:Q1260 property:P734 ?m }
Waldheim
Waldheim is associated with Kurt Waldheim
Waldheim
action filter_type
action find
entity Kurt Waldheim
relation family name
type name
['Kurt Waldheim', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:name . resource:Kurt_Waldheim property:family_name ?m }
[]