Simple Question (Direct)
Simple Question
Q16664306
P39
Q12737077
USER
Which occupation was a position held by Michel Lambert ?
(Q16664306,P39,c(Q12737077))
action filter_type
action find
entity Q16664306
relation P39
type Q12737077
['Q16664306', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q16664306 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
Michel Lambert
action filter_type
action find
entity Michel Lambert
relation position held
type occupation
['Michel Lambert', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Michel_Lambert property:position_held ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q16664306,P39,c(Q12737077))
action filter_type
action find
entity Q16664306
relation P39
type Q12737077
The member of the French National Assembly was a position held by Michel Lambert
['Q16664306', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q16664306 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
member of the French National Assembly
The member of the French National Assembly was a position held by Michel Lambert
member of the French National Assembly
action filter_type
action find
entity Michel Lambert
relation position held
type occupation
['Michel Lambert', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Michel_Lambert property:position_held ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16664306
P21
Q290
USER
What is the sex of Michel Lambert ?
(Q16664306,P21,c(Q290))
action filter_type
action find
entity Q16664306
relation P21
type Q290
['Q16664306', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q290 . resource:Q16664306 property:P21 ?w }
Michel Lambert
action filter_type
action find
entity Michel Lambert
relation gender
type sex
['Michel Lambert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sex . resource:Michel_Lambert property:gender ?w }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16664306,P21,c(Q290))
action filter_type
action find
entity Q16664306
relation P21
type Q290
The sex of Michel Lambert is a [ANSWER]
['Q16664306', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q290 . resource:Q16664306 property:P21 ?w }
male
The sex of Michel Lambert is a male
male
action filter_type
action find
entity Michel Lambert
relation gender
type sex
['Michel Lambert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sex . resource:Michel_Lambert property:gender ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12678282
Q290
USER
And how about Vytautas Bakas?
(Q12678282,P21,c(Q290))
action filter_type
action find
entity Q12678282
relation P21
type Q290
['Q12678282', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q12678282 property:P21 ?g . ?g rdf:type ontology:Q290 }
Vytautas Bakas
action filter_type
action find
entity Vytautas Bakas
relation gender
type sex
['Vytautas Bakas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Vytautas_Bakas property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q12678282,P21,c(Q290))
action filter_type
action find
entity Q12678282
relation P21
type Q290
[ANSWER]
['Q12678282', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q12678282 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Vytautas Bakas
relation gender
type sex
['Vytautas Bakas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Vytautas_Bakas property:gender ?g . ?g rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15130687 Q16664306
P106
Q12737077
USER
Which occupations are the professions of Michel Lambert or Harold M. Ross ?
OR((Q16664306,P106,c(Q12737077)), (Q15130687,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16664306
relation P106
action find
entity Q15130687
relation P106
type Q12737077
{'OR': [['Q16664306', 'P106', {'concept': 'Q12737077'}], ['Q15130687', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?d WHERE { { ?y property:P106 ?d . VALUES ( ?y ) { ( resource:Q16664306 ) ( resource:Q15130687 ) } } . ?d rdf:type ontology:Q12737077 }
Harold M. Ross Michel Lambert
action filter_type
action union
action find
entity Michel Lambert
relation occupation
action find
entity Harold M. Ross
relation occupation
type occupation
{'OR': [['Michel Lambert', 'occupation', {'concept': 'occupation'}], ['Harold M. Ross', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?d WHERE { { ?y property:occupation ?d . VALUES ( ?y ) { ( resource:Michel_Lambert ) ( resource:Harold_M._Ross ) } } . ?d rdf:type ontology:occupation }
[]
occupation
Q82955 Q4773904
SYSTEM
politician, anthropologist
Q82955 Q4773904
OR((Q16664306,P106,c(Q12737077)), (Q15130687,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16664306
relation P106
action find
entity Q15130687
relation P106
type Q12737077
The professions of Michel Lambert or Harold M. Ross are a [ANSWERS]
{'OR': [['Q16664306', 'P106', {'concept': 'Q12737077'}], ['Q15130687', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?d WHERE { { ?y property:P106 ?d . VALUES ( ?y ) { ( resource:Q16664306 ) ( resource:Q15130687 ) } } . ?d rdf:type ontology:Q12737077 }
politician anthropologist
The professions of Michel Lambert or Harold M. Ross are a politician and anthropologist
politician anthropologist
action filter_type
action union
action find
entity Michel Lambert
relation occupation
action find
entity Harold M. Ross
relation occupation
type occupation
{'OR': [['Michel Lambert', 'occupation', {'concept': 'occupation'}], ['Harold M. Ross', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?d WHERE { { ?y property:occupation ?d . VALUES ( ?y ) { ( resource:Michel_Lambert ) ( resource:Harold_M._Ross ) } } . ?d rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15130687
P108
Q3918
USER
Who is the employer of Harold M. Ross ?
(Q82955,P108,c(Q3918)) (Q4773904,P108,c(Q3918))
action filter_type
action find
entity Q15130687
relation P108
type Q3918
['Q82955', 'P108', {'concept': 'Q3918'}] ['Q4773904', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q3918 . resource:Q15130687 property:P108 ?h }
Harold M. Ross
action filter_type
action find
entity Harold M. Ross
relation employer
type university
['politician', 'employer', {'concept': 'university'}] ['anthropologist', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:university . resource:Harold_M._Ross property:employer ?h }
[]
university
Q457281
SYSTEM
University of Illinois at Urbana–Champaign
Q457281
(Q82955,P108,c(Q3918)) (Q4773904,P108,c(Q3918))
action filter_type
action find
entity Q15130687
relation P108
type Q3918
The employer of Harold M. Ross is the [ANSWER]
['Q82955', 'P108', {'concept': 'Q3918'}] ['Q4773904', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q3918 . resource:Q15130687 property:P108 ?h }
University of Illinois at Urbana–Champaign
The employer of Harold M. Ross is the University of Illinois at Urbana–Champaign
University of Illinois at Urbana–Champaign
action filter_type
action find
entity Harold M. Ross
relation employer
type university
['politician', 'employer', {'concept': 'university'}] ['anthropologist', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:university . resource:Harold_M._Ross property:employer ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3044918
P17
Q15617994
USER
How many administrative territories are member of the French National Assembly present in ?
(Q3044918,P17,c(Q15617994))
action count
action filter_type
action find
entity Q3044918
relation P17
type Q15617994
['Q3044918', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q3044918 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
member of the French National Assembly
action count
action filter_type
action find
entity member of the French National Assembly
relation country
type designation for an administrative territorial entity
['member of the French\xa0National Assembly', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:member_of_the_French National_Assembly property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q3044918,P17,c(Q15617994))
action count
action filter_type
action find
entity Q3044918
relation P17
type Q15617994
[ANSWER]
['Q3044918', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q3044918 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
France
1
action count
action filter_type
action find
entity member of the French National Assembly
relation country
type designation for an administrative territorial entity
['member of the French\xa0National Assembly', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:member_of_the_French National_Assembly property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q2925286
Q15617994
USER
And what about N234 road?
(Q2925286,P17,c(Q15617994))
action count
action filter_type
action find
entity Q2925286
relation P17
type Q15617994
['Q2925286', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Q2925286 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
N234 road
action count
action filter_type
action find
entity N234 road
relation country
type designation for an administrative territorial entity
['N234 road', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:N234_road property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q2925286,P17,c(Q15617994))
action count
action filter_type
action find
entity Q2925286
relation P17
type Q15617994
[ANSWER]
['Q2925286', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Q2925286 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity N234 road
relation country
type designation for an administrative territorial entity
['N234 road', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:N234_road property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2925286
P609
Q56061
USER
What is the destination of that road ?
action filter_type
action find
entity Q2925286
relation P609
type Q56061
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q2925286 property:P609 ?c }
N234 road
action filter_type
action find
entity N234 road
relation terminus location
type administrative territorial entity
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:N234_road property:terminus_location ?c }
[]
administrative territorial entity
Q10041
SYSTEM
Soest
Q10041
action filter_type
action find
entity Q2925286
relation P609
type Q56061
The destination of that road is [ANSWER]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q2925286 property:P609 ?c }
Soest
The destination of that road is Soest
Soest
action filter_type
action find
entity N234 road
relation terminus location
type administrative territorial entity
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:N234_road property:terminus_location ?c }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q10041 Q1870972
P47
Q13220204
USER
Is Toribío, Cauca bordered by that administrative territory ?
(Q10041,P47,Q1870972)
action is_in
entity Q1870972
action find
entity Q10041
relation P47
['Q10041', 'P47', 'Q1870972']
ASK WHERE { resource:Q10041 property:P47 resource:Q1870972 }
Soest Toribío, Cauca
action is_in
entity Toribío, Cauca
action find
entity Soest
relation shares border with
['Soest', 'shares border with', 'Toribío, Cauca']
ASK WHERE { resource:Soest property:shares_border_with resource:Toribío,_Cauca }
[]
second-level administrative country subdivision
SYSTEM
NO
(Q10041,P47,Q1870972)
action is_in
entity Q1870972
action find
entity Q10041
relation P47
[ANSWER]
['Q10041', 'P47', 'Q1870972']
ASK WHERE { resource:Q10041 property:P47 resource:Q1870972 }
No
action is_in
entity Toribío, Cauca
action find
entity Soest
relation shares border with
['Soest', 'shares border with', 'Toribío, Cauca']
ASK WHERE { resource:Soest property:shares_border_with resource:Toribío,_Cauca }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q55 Q2925286
P559 P17
Q34442
USER
Which roads have N234 road as their endpoint and are situated in Netherlands ?
AND((c(Q34442),P559,Q2925286), (c(Q34442),P17,Q55))
action filter_type
action intersection
action find_reverse
entity Q2925286
relation P559
action find_reverse
entity Q55
relation P17
type Q34442
{'AND': [[{'concept': 'Q34442'}, 'P559', 'Q2925286'], [{'concept': 'Q34442'}, 'P17', 'Q55']]}
SELECT DISTINCT ?s WHERE { ?s property:P559 resource:Q2925286 . ?s property:P17 resource:Q55 . ?s rdf:type ontology:Q34442 }
Netherlands N234 road
action filter_type
action intersection
action find_reverse
entity N234 road
relation terminus
action find_reverse
entity Netherlands
relation country
type road
{'AND': [[{'concept': 'road'}, 'terminus', 'N234 road'], [{'concept': 'road'}, 'country', 'Netherlands']]}
SELECT DISTINCT ?s WHERE { ?s property:terminus resource:N234_road . ?s property:country resource:Netherlands . ?s rdf:type ontology:road }
[]
road
Q2414101
SYSTEM
N238 road
Q2414101
AND((c(Q34442),P559,Q2925286), (c(Q34442),P17,Q55))
action filter_type
action intersection
action find_reverse
entity Q2925286
relation P559
action find_reverse
entity Q55
relation P17
type Q34442
[ANSWER] have N234 road as their endpoint and are situated in Netherlands
{'AND': [[{'concept': 'Q34442'}, 'P559', 'Q2925286'], [{'concept': 'Q34442'}, 'P17', 'Q55']]}
SELECT DISTINCT ?s WHERE { ?s property:P559 resource:Q2925286 . ?s property:P17 resource:Q55 . ?s rdf:type ontology:Q34442 }
N238 road
N238 road have N234 road as their endpoint and are situated in Netherlands
N238 road
action filter_type
action intersection
action find_reverse
entity N234 road
relation terminus
action find_reverse
entity Netherlands
relation country
type road
{'AND': [[{'concept': 'road'}, 'terminus', 'N234 road'], [{'concept': 'road'}, 'country', 'Netherlands']]}
SELECT DISTINCT ?s WHERE { ?s property:terminus resource:N234_road . ?s property:country resource:Netherlands . ?s rdf:type ontology:road }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P559
Q811979 Q34442
USER
How many architectural structures are the terminus for exactly 1 road ?
(c(Q34442),P559,c(Q811979))
action count
action equal
action find_reverse_tuple_counts
relation P559
type Q811979
type Q34442
value 1
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?d ) WHERE { ?u rdf:type ontology:Q811979 . ?g rdf:type ontology:Q34442 . ?g property:P559 ?u } GROUP BY ?u } . FILTER ( ?d = 1 ) }
action count
action equal
action find_reverse_tuple_counts
relation terminus
type architectural structure
type road
value 1
[{'concept': 'road'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?d ) WHERE { ?u rdf:type ontology:architectural_structure . ?g rdf:type ontology:road . ?g property:terminus ?u } GROUP BY ?u } . FILTER ( ?d = 1 ) }
[]
architectural structure road
SYSTEM
42
Q7418755 Q1608760 Q10669740 Q1559698 Q3365803 Q7925740 Q827203 Q7071305 Q10648564 Q12012935 Q15955246 Q4797664 Q15804565 Q10477007 Q2455293 Q3429066 Q10688590 Q3725274 Q10550367 Q6160356 Q15818417 Q2603617 Q10539292 Q2854887 Q7332366 Q3362818 Q10475372 Q10426883 Q3289837 Q2997168 Q6432683 Q3652404 Q4572749 Q10658323 Q5620963 Q12323100 Q2261112 Q15818445 Q1318967 Q21250772 Q2667365 Q6936733
(c(Q34442),P559,c(Q811979))
action count
action equal
action find_reverse_tuple_counts
relation P559
type Q811979
type Q34442
value 1
[ANSWER]
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?d ) WHERE { ?u rdf:type ontology:Q811979 . ?g rdf:type ontology:Q34442 . ?g property:P559 ?u } GROUP BY ?u } . FILTER ( ?d = 1 ) }
Sankt Eriksplan Hötorget Skanstorget Götaplatsen Sankt Annæ Plads Victor Borges Plads Bersarinplatz Nytorget Ragnar Östbergs plan Jonas Daniël Meijerplein Ved Stranden Rama VII Bridge Bischofsplatz Drottningtorget drum tower Larsens Plads Södermalmstorg Linnéplatsen Kungstorget Jarmers Plads Remigiusplatz Malieveld Jakobs torg Gustav Adolfs torg Riddarhustorget Birger Jarls torg Doktor Fries square Bastionsplatsen Gammeltorv European Square Korsvägen Högvaktsterrassen Amagertorv Ryssgården Gustaf Adolfs torg Kultorvet Stureplan Bottlerplatz Lotus Bridge Nikolaj Plads Bessarabska Square Munkbron
42
action count
action equal
action find_reverse_tuple_counts
relation terminus
type architectural structure
type road
value 1
[{'concept': 'road'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?d ) WHERE { ?u rdf:type ontology:architectural_structure . ?g rdf:type ontology:road . ?g property:terminus ?u } GROUP BY ?u } . FILTER ( ?d = 1 ) }
[]