Simple Question (Direct)
Simple Question
Q209435
P937
Q56061
USER
Which is the work location of Risto Ryti ?
(Q209435,P937,c(Q56061))
action filter_type
action find
entity Q209435
relation P937
type Q56061
['Q209435', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q209435 property:P937 ?w . ?w rdf:type ontology:Q56061 }
Risto Ryti
action filter_type
action find
entity Risto Ryti
relation work location
type administrative territorial entity
['Risto Ryti', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Risto_Ryti property:work_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1757
SYSTEM
Helsinki
Q1757
(Q209435,P937,c(Q56061))
action filter_type
action find
entity Q209435
relation P937
type Q56061
Is the work location of Risto Ryti in [ANSWER]
['Q209435', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q209435 property:P937 ?w . ?w rdf:type ontology:Q56061 }
Helsinki
Is the work location of Risto Ryti in Helsinki
Helsinki
action filter_type
action find
entity Risto Ryti
relation work location
type administrative territorial entity
['Risto Ryti', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Risto_Ryti property:work_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q209435
P39
Q12737077
USER
Which occupations were the positions for which Risto Ryti were appointed ?
(Q209435,P39,c(Q12737077))
action filter_type
action find
entity Q209435
relation P39
type Q12737077
['Q209435', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q209435 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Risto Ryti
action filter_type
action find
entity Risto Ryti
relation position held
type occupation
['Risto Ryti', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Risto_Ryti property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q29558 Q738695 Q2367542
SYSTEM
President of Finland, Prime Minister of Finland, Minister of Finance
Q738695 Q17592486 Q2367542 Q29558
(Q209435,P39,c(Q12737077))
action filter_type
action find
entity Q209435
relation P39
type Q12737077
[ANSWERS] were the positions for which Risto Ryti were appointed
['Q209435', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q209435 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Prime Minister of Finland member of the Parliament of Finland Minister of Finance President of Finland
President of Finland, Prime Minister of Finland and Minister of Finance were the positions for which Risto Ryti were appointed
President of Finland Prime Minister of Finland Minister of Finance
action filter_type
action find
entity Risto Ryti
relation position held
type occupation
['Risto Ryti', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Risto_Ryti property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29558 Q738695 Q2367542
P17
Q15617994
USER
Which administrative territories are President of Finland, Prime Minister of Finland and Minister of Finance present in ?
(Q29558,P17,c(Q15617994)) (Q738695,P17,c(Q15617994)) (Q2367542,P17,c(Q15617994))
action union
action filter_type
action find
entity Q29558
relation P17
type Q15617994
action filter_type
action find
entity Q738695
relation P17
type Q15617994
action filter_type
action find
entity Q2367542
relation P17
type Q15617994
['Q29558', 'P17', {'concept': 'Q15617994'}] ['Q738695', 'P17', {'concept': 'Q15617994'}] ['Q2367542', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { resource:Q29558 property:P17 ?w . ?w rdf:type ontology:Q15617994 } UNION { resource:Q738695 property:P17 ?w . ?w rdf:type ontology:Q15617994 } }
President of Finland Prime Minister of Finland Minister of Finance
action union
action filter_type
action find
entity President of Finland
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Prime Minister of Finland
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Minister of Finance
relation country
type designation for an administrative territorial entity
['President of Finland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prime Minister of Finland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Minister of Finance', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { resource:President_of_Finland property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Prime_Minister_of_Finland property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q33 Q33 Q33
SYSTEM
Finland
Q33 Q33 Q33
(Q29558,P17,c(Q15617994)) (Q738695,P17,c(Q15617994)) (Q2367542,P17,c(Q15617994))
action union
action filter_type
action find
entity Q29558
relation P17
type Q15617994
action filter_type
action find
entity Q738695
relation P17
type Q15617994
action filter_type
action find
entity Q2367542
relation P17
type Q15617994
And [ANSWER], [ANSWER] and [ANSWER] are President of [ANSWER], Prime Minister of [ANSWER] and Minister of Finance present in
['Q29558', 'P17', {'concept': 'Q15617994'}] ['Q738695', 'P17', {'concept': 'Q15617994'}] ['Q2367542', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { resource:Q29558 property:P17 ?w . ?w rdf:type ontology:Q15617994 } UNION { resource:Q738695 property:P17 ?w . ?w rdf:type ontology:Q15617994 } }
Finland Finland Finland
And Finland, Finland and Finland are President of Finland, Prime Minister of Finland and Minister of Finance present in
Finland Finland Finland
action union
action filter_type
action find
entity President of Finland
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Prime Minister of Finland
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Minister of Finance
relation country
type designation for an administrative territorial entity
['President of Finland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prime Minister of Finland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Minister of Finance', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { resource:President_of_Finland property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Prime_Minister_of_Finland property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1757
P559
Q83620
USER
Which thoroughfare has Helsinki as terminus ?
(c(Q83620),P559,Q1757)
action filter_type
action find_reverse
entity Q1757
relation P559
type Q83620
[{'concept': 'Q83620'}, 'P559', 'Q1757']
SELECT DISTINCT ?v WHERE { ?v property:P559 resource:Q1757 . ?v rdf:type ontology:Q83620 }
Helsinki
action filter_type
action find_reverse
entity Helsinki
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Helsinki']
SELECT DISTINCT ?v WHERE { ?v property:terminus resource:Helsinki . ?v rdf:type ontology:thoroughfare }
[]
thoroughfare
Q10650516
SYSTEM
Regional road 110
Q10650516
(c(Q83620),P559,Q1757)
action filter_type
action find_reverse
entity Q1757
relation P559
type Q83620
[ANSWER] has Helsinki as terminus
[{'concept': 'Q83620'}, 'P559', 'Q1757']
SELECT DISTINCT ?v WHERE { ?v property:P559 resource:Q1757 . ?v rdf:type ontology:Q83620 }
Regional road 110
Regional road 110 has Helsinki as terminus
Regional road 110
action filter_type
action find_reverse
entity Helsinki
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Helsinki']
SELECT DISTINCT ?v WHERE { ?v property:terminus resource:Helsinki . ?v rdf:type ontology:thoroughfare }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10650516
P16
Q83620
USER
Which thoroughfare is the network of routes for that one ?
(Q10650516,P16,c(Q83620))
action filter_type
action find
entity Q10650516
relation P16
type Q83620
['Q10650516', 'P16', {'concept': 'Q83620'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q83620 . resource:Q10650516 property:P16 ?u }
Regional road 110
action filter_type
action find
entity Regional road 110
relation highway system
type thoroughfare
['Regional road 110', 'highway system', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:thoroughfare . resource:Regional_road_110 property:highway_system ?u }
[]
thoroughfare
Q15238111
SYSTEM
road in Finland
Q15238111
(Q10650516,P16,c(Q83620))
action filter_type
action find
entity Q10650516
relation P16
type Q83620
[ANSWER] is the network of routes for that one
['Q10650516', 'P16', {'concept': 'Q83620'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q83620 . resource:Q10650516 property:P16 ?u }
road in Finland
Road in Finland is the network of routes for that one
road in Finland
action filter_type
action find
entity Regional road 110
relation highway system
type thoroughfare
['Regional road 110', 'highway system', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:thoroughfare . resource:Regional_road_110 property:highway_system ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20136694 Q15238111
P17
Q15617994
USER
Which administrative territories are road in Finland or Familia Álvarez Moreno located in ?
OR((Q15238111,P17,c(Q15617994)), (Q20136694,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15238111
relation P17
action find
entity Q20136694
relation P17
type Q15617994
{'OR': [['Q15238111', 'P17', {'concept': 'Q15617994'}], ['Q20136694', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q15238111 property:P17 ?j } UNION { resource:Q20136694 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Familia Álvarez Moreno road in Finland
action filter_type
action union
action find
entity road in Finland
relation country
action find
entity Familia Álvarez Moreno
relation country
type designation for an administrative territorial entity
{'OR': [['road in Finland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Familia Álvarez Moreno', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:road_in_Finland property:country ?j } UNION { resource:Familia_Álvarez_Moreno property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q96
SYSTEM
Finland, Mexico
Q33 Q96
OR((Q15238111,P17,c(Q15617994)), (Q20136694,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15238111
relation P17
action find
entity Q20136694
relation P17
type Q15617994
[ANSWERS] are road in Finland or Familia Álvarez Moreno located in
{'OR': [['Q15238111', 'P17', {'concept': 'Q15617994'}], ['Q20136694', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q15238111 property:P17 ?j } UNION { resource:Q20136694 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Finland Mexico
Finland and Mexico are road in Finland or Familia Álvarez Moreno located in
Finland Mexico
action filter_type
action union
action find
entity road in Finland
relation country
action find
entity Familia Álvarez Moreno
relation country
type designation for an administrative territorial entity
{'OR': [['road in Finland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Familia Álvarez Moreno', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:road_in_Finland property:country ?j } UNION { resource:Familia_Álvarez_Moreno property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26454171
Q15617994
USER
And also tell me about 3, Hinwick Village?
(Q26454171,P17,c(Q15617994))
action filter_type
action find
entity Q26454171
relation P17
type Q15617994
['Q26454171', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26454171 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
3, Hinwick Village
action filter_type
action find
entity 3, Hinwick Village
relation country
type designation for an administrative territorial entity
['3, Hinwick Village', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:3,_Hinwick_Village property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26454171,P17,c(Q15617994))
action filter_type
action find
entity Q26454171
relation P17
type Q15617994
[ANSWER]
['Q26454171', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26454171 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity 3, Hinwick Village
relation country
type designation for an administrative territorial entity
['3, Hinwick Village', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:3,_Hinwick_Village property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P19
Q15619164 Q12737077
USER
How many abstract beings and occupations have location of birth at United Kingdom ?
(c(Q15619164),P19,Q145) (c(Q12737077),P19,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P19
type Q15619164
action filter_type
action find_reverse
entity Q145
relation P19
type Q12737077
[{'concept': 'Q15619164'}, 'P19', 'Q145'] [{'concept': 'Q12737077'}, 'P19', 'Q145']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?h ) { ( ontology:Q15619164 ) ( ontology:Q12737077 ) } . ?s rdf:type ?h }
United Kingdom
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation place of birth
type abstract being
action filter_type
action find_reverse
entity United Kingdom
relation place of birth
type occupation
[{'concept': 'abstract being'}, 'place of birth', 'United Kingdom'] [{'concept': 'occupation'}, 'place of birth', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?h ) { ( ontology:abstract_being ) ( ontology:occupation ) } . ?s rdf:type ?h }
[]
abstract being occupation
SYSTEM
1 abstract beings and 1 occupations
Q6119244 Q2406921
(c(Q15619164),P19,Q145) (c(Q12737077),P19,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P19
type Q15619164
action filter_type
action find_reverse
entity Q145
relation P19
type Q12737077
[ANSWER]
[{'concept': 'Q15619164'}, 'P19', 'Q145'] [{'concept': 'Q12737077'}, 'P19', 'Q145']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?h ) { ( ontology:Q15619164 ) ( ontology:Q12737077 ) } . ?s rdf:type ?h }
Michael Woodford Jonathan Joestar
1 abstract beings and 1 occupations
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation place of birth
type abstract being
action filter_type
action find_reverse
entity United Kingdom
relation place of birth
type occupation
[{'concept': 'abstract being'}, 'place of birth', 'United Kingdom'] [{'concept': 'occupation'}, 'place of birth', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?h ) { ( ontology:abstract_being ) ( ontology:occupation ) } . ?s rdf:type ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with approximately 92 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 92
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?e ) WHERE { ?j property:P530 ?n . ?j rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?e = 92 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 92
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?e ) WHERE { ?j property:diplomatic_relation ?n . ?j rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?e = 92 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 92
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?e ) WHERE { ?j property:P530 ?n . ?j rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?e = 92 ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 92
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?e ) WHERE { ?j property:diplomatic_relation ?n . ?j rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?e = 92 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33
P941
Q3895768
USER
Who had Finland as a source of inspiration ?
(c(Q3895768),P941,Q33)
action filter_type
action find_reverse
entity Q33
relation P941
type Q3895768
[{'concept': 'Q3895768'}, 'P941', 'Q33']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q3895768 . ?q property:P941 resource:Q33 }
Finland
action filter_type
action find_reverse
entity Finland
relation inspired by
type fictional location
[{'concept': 'fictional location'}, 'inspired by', 'Finland']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:fictional_location . ?q property:inspired_by resource:Finland }
[]
fictional location
Q5898259
SYSTEM
Hyperborea
Q5898259
(c(Q3895768),P941,Q33)
action filter_type
action find_reverse
entity Q33
relation P941
type Q3895768
[ANSWER] had Finland as a source of inspiration
[{'concept': 'Q3895768'}, 'P941', 'Q33']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q3895768 . ?q property:P941 resource:Q33 }
Hyperborea
Hyperborea had Finland as a source of inspiration
Hyperborea
action filter_type
action find_reverse
entity Finland
relation inspired by
type fictional location
[{'concept': 'fictional location'}, 'inspired by', 'Finland']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:fictional_location . ?q property:inspired_by resource:Finland }
[]