Simple Question (Direct)
Simple Question
Q1803475
P19
Q15617994
USER
Which administrative territory was Matthias Ahrens born in ?
(Q1803475,P19,c(Q15617994))
action filter_type
action find
entity Q1803475
relation P19
type Q15617994
['Q1803475', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1803475 property:P19 ?n . ?n rdf:type ontology:Q15617994 }
Matthias Ahrens
action filter_type
action find
entity Matthias Ahrens
relation place of birth
type designation for an administrative territorial entity
['Matthias Ahrens', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Matthias_Ahrens property:place_of_birth ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q73532
SYSTEM
Ruhpolding
Q73532
(Q1803475,P19,c(Q15617994))
action filter_type
action find
entity Q1803475
relation P19
type Q15617994
Matthias Ahrens was born in [ANSWER]
['Q1803475', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1803475 property:P19 ?n . ?n rdf:type ontology:Q15617994 }
Ruhpolding
Matthias Ahrens was born in Ruhpolding
Ruhpolding
action filter_type
action find
entity Matthias Ahrens
relation place of birth
type designation for an administrative territorial entity
['Matthias Ahrens', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Matthias_Ahrens property:place_of_birth ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q73532
P551
Q502895
USER
Which person lives in that administrative territory ?
(c(Q502895),P551,Q73532)
action filter_type
action find_reverse
entity Q73532
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q73532']
SELECT DISTINCT ?d WHERE { ?d property:P551 resource:Q73532 . ?d rdf:type ontology:Q502895 }
Ruhpolding
action filter_type
action find_reverse
entity Ruhpolding
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Ruhpolding']
SELECT DISTINCT ?d WHERE { ?d property:residence resource:Ruhpolding . ?d rdf:type ontology:common_name }
[]
common name
Q6001165
SYSTEM
Ilse Braun
Q6001165
(c(Q502895),P551,Q73532)
action filter_type
action find_reverse
entity Q73532
relation P551
type Q502895
[ANSWER] lives in that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q73532']
SELECT DISTINCT ?d WHERE { ?d property:P551 resource:Q73532 . ?d rdf:type ontology:Q502895 }
Ilse Braun
Ilse Braun lives in that administrative territory
Ilse Braun
action filter_type
action find_reverse
entity Ruhpolding
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Ruhpolding']
SELECT DISTINCT ?d WHERE { ?d property:residence resource:Ruhpolding . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q386724
USER
Which works had min number of people as the dubbing artist ?
(c(Q386724),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q386724
type Q502895
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?i ) WHERE { ?t property:P725 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q386724 } GROUP BY ?t } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q386724 . ?c property:P725 ?n } GROUP BY ?c } . FILTER ( ?s = ?w ) }
action argmin
action find_tuple_counts
relation voice actor
type work
type common name
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?i ) WHERE { ?t property:voice_actor ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:work } GROUP BY ?t } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { ?n rdf:type ontology:common_name . ?c rdf:type ontology:work . ?c property:voice_actor ?n } GROUP BY ?c } . FILTER ( ?s = ?w ) }
[]
common name work
Q10864091
SYSTEM
Isshūkan Friends
Q10864091
(c(Q386724),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q386724
type Q502895
[ANSWER] had min number of people as the dubbing artist
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?i ) WHERE { ?t property:P725 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q386724 } GROUP BY ?t } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q386724 . ?c property:P725 ?n } GROUP BY ?c } . FILTER ( ?s = ?w ) }
Isshūkan Friends
Isshūkan Friends had min number of people as the dubbing artist
Isshūkan Friends
action argmin
action find_tuple_counts
relation voice actor
type work
type common name
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?i ) WHERE { ?t property:voice_actor ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:work } GROUP BY ?t } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { ?n rdf:type ontology:common_name . ?c rdf:type ontology:work . ?c property:voice_actor ?n } GROUP BY ?c } . FILTER ( ?s = ?w ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q15617994 Q515 Q486972
USER
Which administrative territories have max number of cities or human settlements have their center of administration ?
(c(Q515)|c(Q486972),P1376,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:Q515 . ?f rdf:type ontology:Q15617994 . ?x property:P1376 ?f } UNION { ?x property:P1376 ?f . ?f rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q486972 } } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?k ) WHERE { { ?v property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } UNION { ?v property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q486972 } } GROUP BY ?z } . FILTER ( ?k = ?n ) }
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:city . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:capital_of ?f } UNION { ?x property:capital_of ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:human_settlement } } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?k ) WHERE { { ?v property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } UNION { ?v property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:human_settlement } } GROUP BY ?z } . FILTER ( ?k = ?n ) }
[]
designation for an administrative territorial entity city human settlement
Q252
SYSTEM
Indonesia
Q252
(c(Q515)|c(Q486972),P1376,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
[ANSWER] have max number of cities or human settlements have their center of administration
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:Q515 . ?f rdf:type ontology:Q15617994 . ?x property:P1376 ?f } UNION { ?x property:P1376 ?f . ?f rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q486972 } } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?k ) WHERE { { ?v property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } UNION { ?v property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q486972 } } GROUP BY ?z } . FILTER ( ?k = ?n ) }
Indonesia
Indonesia have max number of cities or human settlements have their center of administration
Indonesia
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:city . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:capital_of ?f } UNION { ?x property:capital_of ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:human_settlement } } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?k ) WHERE { { ?v property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } UNION { ?v property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:human_settlement } } GROUP BY ?z } . FILTER ( ?k = ?n ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q252 Q12507644
P27
Q502895
USER
Is Radhit Syaharzam a native of that administrative territory ?
(Q12507644,P27,Q252)
action is_in
entity Q252
action find
entity Q12507644
relation P27
['Q12507644', 'P27', 'Q252']
ASK WHERE { resource:Q12507644 property:P27 resource:Q252 }
Indonesia Radhit Syaharzam
action is_in
entity Indonesia
action find
entity Radhit Syaharzam
relation country of citizenship
['Radhit Syaharzam', 'country of citizenship', 'Indonesia']
ASK WHERE { resource:Radhit_Syaharzam property:country_of_citizenship resource:Indonesia }
[]
common name
SYSTEM
YES
(Q12507644,P27,Q252)
action is_in
entity Q252
action find
entity Q12507644
relation P27
[ANSWER]
['Q12507644', 'P27', 'Q252']
ASK WHERE { resource:Q12507644 property:P27 resource:Q252 }
Yes
action is_in
entity Indonesia
action find
entity Radhit Syaharzam
relation country of citizenship
['Radhit Syaharzam', 'country of citizenship', 'Indonesia']
ASK WHERE { resource:Radhit_Syaharzam property:country_of_citizenship resource:Indonesia }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q10864091 Q1368445
P123
Q1269299
USER
Did Espírito Santo Financial Group release Isshūkan Friends ?
(Q10864091,P123,Q1368445)
action is_in
entity Q1368445
action find
entity Q10864091
relation P123
['Q10864091', 'P123', 'Q1368445']
ASK WHERE { resource:Q10864091 property:P123 resource:Q1368445 }
Isshūkan Friends Espírito Santo Financial Group
action is_in
entity Espírito Santo Financial Group
action find
entity Isshūkan Friends
relation publisher
['Isshūkan Friends', 'publisher', 'Espírito Santo Financial Group']
ASK WHERE { resource:Isshūkan_Friends property:publisher resource:Espírito_Santo_Financial_Group }
[]
type of business entity
SYSTEM
NO
(Q10864091,P123,Q1368445)
action is_in
entity Q1368445
action find
entity Q10864091
relation P123
[ANSWER]
['Q10864091', 'P123', 'Q1368445']
ASK WHERE { resource:Q10864091 property:P123 resource:Q1368445 }
No
action is_in
entity Espírito Santo Financial Group
action find
entity Isshūkan Friends
relation publisher
['Isshūkan Friends', 'publisher', 'Espírito Santo Financial Group']
ASK WHERE { resource:Isshūkan_Friends property:publisher resource:Espírito_Santo_Financial_Group }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15217719 Q1803475
P27 P17
Q1048835
USER
Which political territories do Matthias Ahrens belong to or are Finschhafen located in ?
OR((Q1803475,P27,c(Q1048835)), (Q15217719,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1803475
relation P27
action find
entity Q15217719
relation P17
type Q1048835
{'OR': [['Q1803475', 'P27', {'concept': 'Q1048835'}], ['Q15217719', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1803475 property:P27 ?s } UNION { resource:Q15217719 property:P17 ?s } } . ?s rdf:type ontology:Q1048835 }
Finschhafen Matthias Ahrens
action filter_type
action union
action find
entity Matthias Ahrens
relation country of citizenship
action find
entity Finschhafen
relation country
type political territorial entity
{'OR': [['Matthias Ahrens', 'country of citizenship', {'concept': 'political territorial entity'}], ['Finschhafen', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Matthias_Ahrens property:country_of_citizenship ?s } UNION { resource:Finschhafen property:country ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q691
SYSTEM
Germany, Papua New Guinea
Q183 Q691
OR((Q1803475,P27,c(Q1048835)), (Q15217719,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1803475
relation P27
action find
entity Q15217719
relation P17
type Q1048835
Matthias Ahrens belong to Nazi [ANSWERS]
{'OR': [['Q1803475', 'P27', {'concept': 'Q1048835'}], ['Q15217719', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1803475 property:P27 ?s } UNION { resource:Q15217719 property:P17 ?s } } . ?s rdf:type ontology:Q1048835 }
Germany Papua New Guinea
Matthias Ahrens belong to Nazi Germany and Papua New Guinea
Germany Papua New Guinea
action filter_type
action union
action find
entity Matthias Ahrens
relation country of citizenship
action find
entity Finschhafen
relation country
type political territorial entity
{'OR': [['Matthias Ahrens', 'country of citizenship', {'concept': 'political territorial entity'}], ['Finschhafen', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Matthias_Ahrens property:country_of_citizenship ?s } UNION { resource:Finschhafen property:country ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relationships with that political territory ?
(Q183,P530,c(Q15617994))
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423030 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
(Q183,P530,c(Q15617994)) (Q691,P530,c(Q15617994))
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q691', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423030 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Germany ?
Germany
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Papua New Guinea', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q183,P530,c(Q15617994))
['Q183', 'P530', {'concept': 'Q15617994'}]
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
124
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
(Q183,P530,c(Q15617994))
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423030 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
124
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]