Simple Question (Direct)
Simple Question
Q1516578
P734
Q82799
USER
Which name is associated with Urban Meyer ?
(Q1516578,P734,c(Q82799))
action filter_type
action find
entity Q1516578
relation P734
type Q82799
['Q1516578', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q82799 . resource:Q1516578 property:P734 ?t }
Urban Meyer
action filter_type
action find
entity Urban Meyer
relation family name
type name
['Urban Meyer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:name . resource:Urban_Meyer property:family_name ?t }
[]
name
Q46767
SYSTEM
Meyer
Q46767
(Q1516578,P734,c(Q82799))
action filter_type
action find
entity Q1516578
relation P734
type Q82799
S [ANSWER] is associated with Urban [ANSWER]
['Q1516578', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q82799 . resource:Q1516578 property:P734 ?t }
Meyer
S Meyer is associated with Urban Meyer
Meyer
action filter_type
action find
entity Urban Meyer
relation family name
type name
['Urban Meyer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:name . resource:Urban_Meyer property:family_name ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46767
P495
Q1048835
USER
Which political territory is the origin of that name ?
(Q46767,P495,c(Q1048835))
action filter_type
action find
entity Q46767
relation P495
type Q1048835
['Q46767', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q46767 property:P495 ?m . ?m rdf:type ontology:Q1048835 }
Meyer
action filter_type
action find
entity Meyer
relation country of origin
type political territorial entity
['Meyer', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Meyer property:country_of_origin ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q46767,P495,c(Q1048835))
action filter_type
action find
entity Q46767
relation P495
type Q1048835
The [ANSWER] is the origin of that name
['Q46767', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q46767 property:P495 ?m . ?m rdf:type ontology:Q1048835 }
Germany
The Germany is the origin of that name
Germany
action filter_type
action find
entity Meyer
relation country of origin
type political territorial entity
['Meyer', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Meyer property:country_of_origin ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q241725
P530
Q15617994
USER
Does Arcinazzo Romano have diplomatic relationships with that political territory ?
(Q183,P530,Q241725)
action is_in
entity Q241725
action find
entity Q183
relation P530
['Q183', 'P530', 'Q241725']
ASK WHERE { resource:Q183 property:P530 resource:Q241725 }
Germany Arcinazzo Romano
action is_in
entity Arcinazzo Romano
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Arcinazzo Romano']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Arcinazzo_Romano }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q241725)
action is_in
entity Q241725
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q241725']
ASK WHERE { resource:Q183 property:P530 resource:Q241725 }
No
action is_in
entity Arcinazzo Romano
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Arcinazzo Romano']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Arcinazzo_Romano }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1516578 Q643150
P27
Q15617994
USER
Is Urban Meyer an inhabitant of Krummenau ?
(Q1516578,P27,Q643150)
action is_in
entity Q643150
action find
entity Q1516578
relation P27
['Q1516578', 'P27', 'Q643150']
ASK WHERE { resource:Q1516578 property:P27 resource:Q643150 }
Urban Meyer Krummenau
action is_in
entity Krummenau
action find
entity Urban Meyer
relation country of citizenship
['Urban Meyer', 'country of citizenship', 'Krummenau']
ASK WHERE { resource:Urban_Meyer property:country_of_citizenship resource:Krummenau }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1516578,P27,Q643150)
action is_in
entity Q643150
action find
entity Q1516578
relation P27
[ANSWER]
['Q1516578', 'P27', 'Q643150']
ASK WHERE { resource:Q1516578 property:P27 resource:Q643150 }
No
action is_in
entity Krummenau
action find
entity Urban Meyer
relation country of citizenship
['Urban Meyer', 'country of citizenship', 'Krummenau']
ASK WHERE { resource:Urban_Meyer property:country_of_citizenship resource:Krummenau }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q502895 Q2472587 Q82799
USER
How many names have atmost 2 people or peoples as their namesake ?
(c(Q82799),P138,c(Q502895)|c(Q2472587))
action count
action atmost
action union
action find_tuple_counts
relation P138
type Q82799
type Q502895
action find_tuple_counts
relation P138
type Q82799
type Q2472587
value 2
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { FILTER ( ?w <= 2 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?w ) WHERE { { ?i property:P138 ?b . ?i rdf:type ontology:Q82799 . ?b rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q82799 . ?b rdf:type ontology:Q2472587 . ?i property:P138 ?b } } GROUP BY ?i } }
action count
action atmost
action union
action find_tuple_counts
relation named after
type name
type common name
action find_tuple_counts
relation named after
type name
type people
value 2
[{'concept': 'name'}, 'named after', [{'concept': 'common name'}, {'concept': 'people'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { FILTER ( ?w <= 2 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?w ) WHERE { { ?i property:named_after ?b . ?i rdf:type ontology:name . ?b rdf:type ontology:common_name } UNION { ?i rdf:type ontology:name . ?b rdf:type ontology:people . ?i property:named_after ?b } } GROUP BY ?i } }
[]
common name people name
SYSTEM
109
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 Q1069827 Q46767 Q1061262 Q19558843 Q25115046 Q16871796 Q23688105 Q23599481 Q1158323 Q1370531 Q16869665 Q1158446 Q1158882 Q8046631 Q11231408 Q24699545 Q13099004 Q17747435 Q15785531 Q21508058 Q16869754 Q5352294 Q20747163 Q813701 Q17847495 Q15629400 Q1746111 Q23885849 Q1812295 Q25343999 Q21161805 Q21449089 Q23783070 Q1643088 Q21507928 Q2909103 Q24529820 Q807882 Q21448754 Q23995126 Q25058808 Q21501910 Q18198433 Q13553585 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q21493520 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q16860286 Q25326750 Q16865812 Q20963077 Q612479 Q1755217 Q17625919 Q26247962 Q22922124 Q24689291 Q16877784 Q23301520 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706 Q24229341
(c(Q82799),P138,c(Q502895)|c(Q2472587))
action count
action atmost
action union
action find_tuple_counts
relation P138
type Q82799
type Q502895
action find_tuple_counts
relation P138
type Q82799
type Q2472587
value 2
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { FILTER ( ?w <= 2 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?w ) WHERE { { ?i property:P138 ?b . ?i rdf:type ontology:Q82799 . ?b rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q82799 . ?b rdf:type ontology:Q2472587 . ?i property:P138 ?b } } GROUP BY ?i } }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Pseudo-Lucian Louarn Lancaster de Bragança Bouvier Albrecht Meister (surname) Draper Smith Fisher Yael Fischer Saunier Larsen Ruzena Barber Delaroche Eastman Fisichella Saccharomyces carlsbergensis Becker Rózsa Dimorphotheca ecklonis Michael Gregorio Achaz Van Leemput Grenier Cain Lebreton Potier Ramos Mouton Boissel Rameau Barbus Müller Ahrens Mercier Dumoulin Boulanger Peleg Gold Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Bergmann Macdara If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Saxon Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Boucher Février Couture Aryaman Koehler Magowan Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Vigneron Napoli Aonchotheca moraveci Buffet Archer Schultheiss Picard Le Guen Sawyer Toscano
109
action count
action atmost
action union
action find_tuple_counts
relation named after
type name
type common name
action find_tuple_counts
relation named after
type name
type people
value 2
[{'concept': 'name'}, 'named after', [{'concept': 'common name'}, {'concept': 'people'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { FILTER ( ?w <= 2 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?w ) WHERE { { ?i property:named_after ?b . ?i rdf:type ontology:name . ?b rdf:type ontology:common_name } UNION { ?i rdf:type ontology:name . ?b rdf:type ontology:people . ?i property:named_after ?b } } GROUP BY ?i } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with min number of political territories ?
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 . ?n property:P530 ?w } GROUP BY ?w } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { ?x rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?x property:P530 ?q } GROUP BY ?q } } }
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?w } GROUP BY ?w } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?q } GROUP BY ?q } } }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 . ?n property:P530 ?w } GROUP BY ?w } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { ?x rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?x property:P530 ?q } GROUP BY ?q } } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have diplomatic relations with min number of political territories
Yemen Syria Oman
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?w } GROUP BY ?w } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?q } GROUP BY ?q } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q552774 Q183
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relations with Germany or are Rodrigo de Triana an inhabitant of ?
OR((Q183,P530,c(Q15617994)), (Q552774,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q552774
relation P27
type Q15617994
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q552774', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q552774 property:P27 ?d } UNION { resource:Q183 property:P530 ?d } } . ?d rdf:type ontology:Q15617994 }
Rodrigo de Triana Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Rodrigo de Triana
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Rodrigo de Triana', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Rodrigo_de_Triana property:country_of_citizenship ?d } UNION { resource:Germany property:diplomatic_relation ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q983 Q750 Q27 Q219 Q1028 Q20 Q155 Q1009 Q414 Q77
SYSTEM
Some of them are Equatorial Guinea, Bolivia, Ireland, Bulgaria, Morocco, Norway, Brazil, Cameroon, Argentina, Uruguay
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 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 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
OR((Q183,P530,c(Q15617994)), (Q552774,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q552774
relation P27
type Q15617994
[ANSWERS] have diplomatic relations with Germany or are Rodrigo de Triana an inhabitant of
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q552774', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q552774 property:P27 ?d } UNION { resource:Q183 property:P530 ?d } } . ?d 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 Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra 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
Equatorial Guinea, Bolivia, Ireland, Bulgaria, Morocco, Norway, Brazil, Cameroon, Argentina and Uruguay have diplomatic relations with Germany or are Rodrigo de Triana an inhabitant of
Equatorial Guinea Bolivia Ireland Bulgaria Morocco Norway Brazil Cameroon Argentina Uruguay
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Rodrigo de Triana
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Rodrigo de Triana', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Rodrigo_de_Triana property:country_of_citizenship ?d } UNION { resource:Germany property:diplomatic_relation ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
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 a diplomatic relationship with around 116 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 116
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?h ) WHERE { ?m property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?h = 116 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 116
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?h ) WHERE { ?m property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?h = 116 ) }
[]
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 116
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?h ) WHERE { ?m property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?h = 116 ) }
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 116
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?h ) WHERE { ?m property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?h = 116 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q881
P706
Q2472587
USER
Which peoples are located in Vietnam ?
(c(Q2472587),P706,Q881)
action filter_type
action find_reverse
entity Q881
relation P706
type Q2472587
[{'concept': 'Q2472587'}, 'P706', 'Q881']
SELECT DISTINCT ?a WHERE { ?a property:P706 resource:Q881 . ?a rdf:type ontology:Q2472587 }
Vietnam
action filter_type
action find_reverse
entity Vietnam
relation located on terrain feature
type people
[{'concept': 'people'}, 'located on terrain feature', 'Vietnam']
SELECT DISTINCT ?a WHERE { ?a property:located_on_terrain_feature resource:Vietnam . ?a rdf:type ontology:people }
[]
people
Q2518802 Q2467559
SYSTEM
Mnong people, Jarai people
Q2518802 Q2467559
(c(Q2472587),P706,Q881)
action filter_type
action find_reverse
entity Q881
relation P706
type Q2472587
[ANSWERS] are located in Vietnam
[{'concept': 'Q2472587'}, 'P706', 'Q881']
SELECT DISTINCT ?a WHERE { ?a property:P706 resource:Q881 . ?a rdf:type ontology:Q2472587 }
Mnong people Jarai people
Mnong people and Jarai people are located in Vietnam
Mnong people Jarai people
action filter_type
action find_reverse
entity Vietnam
relation located on terrain feature
type people
[{'concept': 'people'}, 'located on terrain feature', 'Vietnam']
SELECT DISTINCT ?a WHERE { ?a property:located_on_terrain_feature resource:Vietnam . ?a rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P417
Q1509831
USER
Which titles of Mary is the patron saint of Brazil ?
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?d WHERE { resource:Q155 property:P417 ?d . ?d rdf:type ontology:Q1509831 }
Brazil
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?d WHERE { resource:Brazil property:patron_saint ?d . ?d rdf:type ontology:titles_of_Mary }
[]
titles of Mary
Q2469225
SYSTEM
Our Lady of Aparecida
Q2469225
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
[ANSWER] is the patron saint of Brazil
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?d WHERE { resource:Q155 property:P417 ?d . ?d rdf:type ontology:Q1509831 }
Our Lady of Aparecida
Our Lady of Aparecida is the patron saint of Brazil
Our Lady of Aparecida
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?d WHERE { resource:Brazil property:patron_saint ?d . ?d rdf:type ontology:titles_of_Mary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P85
Q7725634
USER
Which is the national anthem of Brazil ?
(Q155,P85,c(Q7725634))
action filter_type
action find
entity Q155
relation P85
type Q7725634
['Q155', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?g WHERE { resource:Q155 property:P85 ?g . ?g rdf:type ontology:Q7725634 }
Brazil
action filter_type
action find
entity Brazil
relation anthem
type literary work
['Brazil', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?g WHERE { resource:Brazil property:anthem ?g . ?g rdf:type ontology:literary_work }
[]
literary work
Q134654
SYSTEM
Brazilian National Anthem
Q134654
(Q155,P85,c(Q7725634))
action filter_type
action find
entity Q155
relation P85
type Q7725634
The national anthem of Brazil is the [ANSWER]
['Q155', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?g WHERE { resource:Q155 property:P85 ?g . ?g rdf:type ontology:Q7725634 }
Brazilian National Anthem
The national anthem of Brazil is the Brazilian National Anthem
Brazilian National Anthem
action filter_type
action find
entity Brazil
relation anthem
type literary work
['Brazil', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?g WHERE { resource:Brazil property:anthem ?g . ?g rdf:type ontology:literary_work }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q518101
Q7725634
USER
And also tell me about First Republic of Austria?
(Q518101,P85,c(Q7725634))
action filter_type
action find
entity Q518101
relation P85
type Q7725634
['Q518101', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { resource:Q518101 property:P85 ?k . ?k rdf:type ontology:Q7725634 }
First Republic of Austria
action filter_type
action find
entity First Republic of Austria
relation anthem
type literary work
['First Republic of Austria', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { resource:First_Republic_of_Austria property:anthem ?k . ?k rdf:type ontology:literary_work }
[]
literary work
Q698660
SYSTEM
Deutschösterreich, du herrliches Land
Q698660
(Q518101,P85,c(Q7725634))
action filter_type
action find
entity Q518101
relation P85
type Q7725634
[ANSWER]
['Q518101', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { resource:Q518101 property:P85 ?k . ?k rdf:type ontology:Q7725634 }
Deutschösterreich, du herrliches Land
Deutschösterreich, du herrliches Land
action filter_type
action find
entity First Republic of Austria
relation anthem
type literary work
['First Republic of Austria', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { resource:First_Republic_of_Austria property:anthem ?k . ?k rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q518101
P140
Q879146
USER
What is the religious affiliation of that state ?
(Q698660,P140,c(Q879146))
action filter_type
action find
entity Q518101
relation P140
type Q879146
['Q698660', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?x WHERE { resource:Q518101 property:P140 ?x . ?x rdf:type ontology:Q879146 }
First Republic of Austria
action filter_type
action find
entity First Republic of Austria
relation religion
type Christian denomination
['Deutschösterreich, du herrliches Land', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?x WHERE { resource:First_Republic_of_Austria property:religion ?x . ?x rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q698660,P140,c(Q879146))
action filter_type
action find
entity Q518101
relation P140
type Q879146
The religious affiliation of that state is the [ANSWER]
['Q698660', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?x WHERE { resource:Q518101 property:P140 ?x . ?x rdf:type ontology:Q879146 }
Roman Catholic Church
The religious affiliation of that state is the Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity First Republic of Austria
relation religion
type Christian denomination
['Deutschösterreich, du herrliches Land', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?x WHERE { resource:First_Republic_of_Austria property:religion ?x . ?x rdf:type ontology:Christian_denomination }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with max number of political territories and administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action argmax
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?t } } }
action argmax
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?t } } }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action argmax
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] is known to have diplomatic connections with max number of political territories and administrative territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?t } } }
Georgia
Georgia is known to have diplomatic connections with max number of political territories and administrative territories
Georgia
action argmax
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?t } } }
[]