Simple Question (Direct)
Simple Question
Q6072401
P20
Q56061
USER
Where did Juha Rihtniemi expire ?
(Q6072401,P20,c(Q56061))
action filter_type
action find
entity Q6072401
relation P20
type Q56061
['Q6072401', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q6072401 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Juha Rihtniemi
action filter_type
action find
entity Juha Rihtniemi
relation place of death
type administrative territorial entity
['Juha Rihtniemi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Juha_Rihtniemi property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1757
SYSTEM
Helsinki
Q1757
(Q6072401,P20,c(Q56061))
action filter_type
action find
entity Q6072401
relation P20
type Q56061
Juha Rihtniemi expired in [ANSWER]
['Q6072401', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q6072401 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Helsinki
Juha Rihtniemi expired in Helsinki
Helsinki
action filter_type
action find
entity Juha Rihtniemi
relation place of death
type administrative territorial entity
['Juha Rihtniemi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Juha_Rihtniemi property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6072401
P937
Q56061
USER
Which administrative territory is the work location of Juha Rihtniemi ?
(Q6072401,P937,c(Q56061))
action filter_type
action find
entity Q6072401
relation P937
type Q56061
['Q6072401', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q6072401 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Juha Rihtniemi
action filter_type
action find
entity Juha Rihtniemi
relation work location
type administrative territorial entity
['Juha Rihtniemi', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Juha_Rihtniemi property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1757
SYSTEM
Helsinki
Q1757
(Q6072401,P937,c(Q56061))
action filter_type
action find
entity Q6072401
relation P937
type Q56061
[ANSWER] is the work location of Juha Rihtniemi
['Q6072401', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q6072401 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Helsinki
Helsinki is the work location of Juha Rihtniemi
Helsinki
action filter_type
action find
entity Juha Rihtniemi
relation work location
type administrative territorial entity
['Juha Rihtniemi', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Juha_Rihtniemi property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18128135 Q6072401
P27
Q15617994
USER
Which administrative territories are Juha Rihtniemi or Aigars Šķēle an inhabitant of ?
OR((Q6072401,P27,c(Q15617994)), (Q18128135,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6072401
relation P27
action find
entity Q18128135
relation P27
type Q15617994
{'OR': [['Q6072401', 'P27', {'concept': 'Q15617994'}], ['Q18128135', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q6072401 property:P27 ?z } UNION { resource:Q18128135 property:P27 ?z } } }
Aigars Šķēle Juha Rihtniemi
action filter_type
action union
action find
entity Juha Rihtniemi
relation country of citizenship
action find
entity Aigars Šķēle
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Juha Rihtniemi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aigars Šķēle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Juha_Rihtniemi property:country_of_citizenship ?z } UNION { resource:Aigars_Šķēle property:country_of_citizenship ?z } } }
[]
designation for an administrative territorial entity
Q33 Q211
SYSTEM
Finland, Latvia
Q33 Q211
OR((Q6072401,P27,c(Q15617994)), (Q18128135,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6072401
relation P27
action find
entity Q18128135
relation P27
type Q15617994
[ANSWERS] are Juha Rihtniemi or Aigars Šķēle an inhabitant of
{'OR': [['Q6072401', 'P27', {'concept': 'Q15617994'}], ['Q18128135', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q6072401 property:P27 ?z } UNION { resource:Q18128135 property:P27 ?z } } }
Finland Latvia
Finland and Latvia are Juha Rihtniemi or Aigars Šķēle an inhabitant of
Finland Latvia
action filter_type
action union
action find
entity Juha Rihtniemi
relation country of citizenship
action find
entity Aigars Šķēle
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Juha Rihtniemi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aigars Šķēle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Juha_Rihtniemi property:country_of_citizenship ?z } UNION { resource:Aigars_Šķēle property:country_of_citizenship ?z } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with exactly 8 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 8
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?a ) WHERE { ?q property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?a = 8 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 8
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?a ) WHERE { ?q property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?a = 8 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q225
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 8
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?a ) WHERE { ?q property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?a = 8 ) }
Bosnia and Herzegovina
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 8
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?a ) WHERE { ?q property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?a = 8 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15647202 Q6072401
P27
Q15617994
USER
Which administrative territories are the native countriesof Juha Rihtniemi or Elisabeth Arnet ?
OR((Q6072401,P27,c(Q15617994)), (Q15647202,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6072401
relation P27
action find
entity Q15647202
relation P27
type Q15617994
{'OR': [['Q6072401', 'P27', {'concept': 'Q15617994'}], ['Q15647202', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { ?x property:P27 ?w . VALUES ( ?x ) { ( resource:Q6072401 ) ( resource:Q15647202 ) } } }
Elisabeth Arnet Juha Rihtniemi
action filter_type
action union
action find
entity Juha Rihtniemi
relation country of citizenship
action find
entity Elisabeth Arnet
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Juha Rihtniemi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Elisabeth Arnet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?x property:country_of_citizenship ?w . VALUES ( ?x ) { ( resource:Juha_Rihtniemi ) ( resource:Elisabeth_Arnet ) } } }
[]
designation for an administrative territorial entity
Q33 Q20
SYSTEM
Finland, Norway
Q33 Q20
OR((Q6072401,P27,c(Q15617994)), (Q15647202,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6072401
relation P27
action find
entity Q15647202
relation P27
type Q15617994
[ANSWERS] are the native countriesof Juha Rihtniemi or Elisabeth Arnet
{'OR': [['Q6072401', 'P27', {'concept': 'Q15617994'}], ['Q15647202', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { ?x property:P27 ?w . VALUES ( ?x ) { ( resource:Q6072401 ) ( resource:Q15647202 ) } } }
Finland Norway
Finland and Norway are the native countriesof Juha Rihtniemi or Elisabeth Arnet
Finland Norway
action filter_type
action union
action find
entity Juha Rihtniemi
relation country of citizenship
action find
entity Elisabeth Arnet
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Juha Rihtniemi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Elisabeth Arnet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?x property:country_of_citizenship ?w . VALUES ( ?x ) { ( resource:Juha_Rihtniemi ) ( resource:Elisabeth_Arnet ) } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7396978
P710
Q15275719
USER
Were those administrative territories a participant of Sacramento Film and Music Festival ?
(Q7396978,P710,Q33) (Q7396978,P710,Q20)
action is_in
entity prev_answer
action find
entity Q7396978
relation P710
['Q7396978', 'P710', 'Q33'] ['Q7396978', 'P710', 'Q20']
ASK WHERE { VALUES ( ?x ) { ( resource:Q33 ) ( resource:Q20 ) } . resource:Q7396978 property:P710 ?x }
Sacramento Film and Music Festival
action is_in
entity prev_answer
action find
entity Sacramento Film and Music Festival
relation participant
['Sacramento Film and Music Festival', 'participant', 'Finland'] ['Sacramento Film and Music Festival', 'participant', 'Norway']
ASK WHERE { VALUES ( ?x ) { ( resource:Finland ) ( resource:Norway ) } . resource:Sacramento_Film_and_Music_Festival property:participant ?x }
[]
recurring event
SYSTEM
NO
(Q7396978,P710,Q33) (Q7396978,P710,Q20)
action is_in
entity prev_answer
action find
entity Q7396978
relation P710
[ANSWER]
['Q7396978', 'P710', 'Q33'] ['Q7396978', 'P710', 'Q20']
ASK WHERE { VALUES ( ?x ) { ( resource:Q33 ) ( resource:Q20 ) } . resource:Q7396978 property:P710 ?x }
No
action is_in
entity prev_answer
action find
entity Sacramento Film and Music Festival
relation participant
['Sacramento Film and Music Festival', 'participant', 'Finland'] ['Sacramento Film and Music Festival', 'participant', 'Norway']
ASK WHERE { VALUES ( ?x ) { ( resource:Finland ) ( resource:Norway ) } . resource:Sacramento_Film_and_Music_Festival property:participant ?x }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?q ) WHERE { ?n property:P530 ?o . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?n } } . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?i ) WHERE { ?s property:P530 ?l . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?i = ?y ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?q ) WHERE { ?n property:diplomatic_relation ?o . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?i ) WHERE { ?s property:diplomatic_relation ?l . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?i = ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?q ) WHERE { ?n property:P530 ?o . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?n } } . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?i ) WHERE { ?s property:P530 ?l . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?i = ?y ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?q ) WHERE { ?n property:diplomatic_relation ?o . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?i ) WHERE { ?s property:diplomatic_relation ?l . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?i = ?y ) }
[]