Simple Question (Direct)
Simple Question
Q2887752
P19
Q1048835
USER
Which political territory was Basílio de Moraes born in ?
(Q2887752,P19,c(Q1048835))
action filter_type
action find
entity Q2887752
relation P19
type Q1048835
['Q2887752', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q2887752 property:P19 ?t . ?t rdf:type ontology:Q1048835 }
Basílio de Moraes
action filter_type
action find
entity Basílio de Moraes
relation place of birth
type political territorial entity
['Basílio de Moraes', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Basílio_de_Moraes property:place_of_birth ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q167436
SYSTEM
João Pessoa
Q167436
(Q2887752,P19,c(Q1048835))
action filter_type
action find
entity Q2887752
relation P19
type Q1048835
Basílio de Moraes was born in [ANSWER]
['Q2887752', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q2887752 property:P19 ?t . ?t rdf:type ontology:Q1048835 }
João Pessoa
Basílio de Moraes was born in João Pessoa
João Pessoa
action filter_type
action find
entity Basílio de Moraes
relation place of birth
type political territorial entity
['Basílio de Moraes', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Basílio_de_Moraes property:place_of_birth ?t . ?t rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2887752
P21
Q290
USER
Which sex does that person have ?
(Q167436,P21,c(Q290))
action filter_type
action find
entity Q2887752
relation P21
type Q290
['Q167436', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q2887752 property:P21 ?r }
Basílio de Moraes
action filter_type
action find
entity Basílio de Moraes
relation gender
type sex
['João Pessoa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Basílio_de_Moraes property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q167436,P21,c(Q290))
action filter_type
action find
entity Q2887752
relation P21
type Q290
That person has a [ANSWER]
['Q167436', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q2887752 property:P21 ?r }
male
That person has a male
male
action filter_type
action find
entity Basílio de Moraes
relation gender
type sex
['João Pessoa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Basílio_de_Moraes property:gender ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q17413871
P21
Q502895
USER
Does Oswin Grolig have the gender as that sex ?
(Q17413871,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q17413871
relation P21
['Q17413871', 'P21', 'Q6581097']
ASK WHERE { resource:Q17413871 property:P21 resource:Q6581097 }
male Oswin Grolig
action is_in
entity male
action find
entity Oswin Grolig
relation gender
['Oswin Grolig', 'gender', 'male']
ASK WHERE { resource:Oswin_Grolig property:gender resource:male }
[]
common name
SYSTEM
YES
(Q17413871,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q17413871
relation P21
[ANSWER]
['Q17413871', 'P21', 'Q6581097']
ASK WHERE { resource:Q17413871 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Oswin Grolig
relation gender
['Oswin Grolig', 'gender', 'male']
ASK WHERE { resource:Oswin_Grolig property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2887752 Q155 Q651998
P27
Q15617994
USER
Is Basílio de Moraes a civilian of Brazil and Schwedelbach ?
(Q2887752,P27,Q155) (Q2887752,P27,Q651998)
action is_in
entity Q2887752
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q651998
relation P27
['Q2887752', 'P27', 'Q155'] ['Q2887752', 'P27', 'Q651998']
ASK WHERE { resource:Q2887752 property:P27 resource:Q155 . resource:Q2887752 property:P27 resource:Q651998 }
Basílio de Moraes Brazil Schwedelbach
action is_in
entity Basílio de Moraes
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity Schwedelbach
relation country of citizenship
['Basílio de Moraes', 'country of citizenship', 'Brazil'] ['Basílio de Moraes', 'country of citizenship', 'Schwedelbach']
ASK WHERE { resource:Basílio_de_Moraes property:country_of_citizenship resource:Brazil . resource:Basílio_de_Moraes property:country_of_citizenship resource:Schwedelbach }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q2887752,P27,Q155) (Q2887752,P27,Q651998)
action is_in
entity Q2887752
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q651998
relation P27
[ANSWER]
['Q2887752', 'P27', 'Q155'] ['Q2887752', 'P27', 'Q651998']
ASK WHERE { resource:Q2887752 property:P27 resource:Q155 . resource:Q2887752 property:P27 resource:Q651998 }
YES and NO respectively
action is_in
entity Basílio de Moraes
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity Schwedelbach
relation country of citizenship
['Basílio de Moraes', 'country of citizenship', 'Brazil'] ['Basílio de Moraes', 'country of citizenship', 'Schwedelbach']
ASK WHERE { resource:Basílio_de_Moraes property:country_of_citizenship resource:Brazil . resource:Basílio_de_Moraes property:country_of_citizenship resource:Schwedelbach }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q1048835
USER
Which political territories have diplomatic relations with atleast 122 administrative territories and political territories ?
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 122
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?o ) WHERE { { ?v property:P530 ?h . ?v rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?h . ?v rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 } } GROUP BY ?v } . FILTER ( ?o >= 122 ) }
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 122
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?o ) WHERE { { ?v property:diplomatic_relation ?h . ?v rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?h . ?v rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . FILTER ( ?o >= 122 ) }
[]
designation for an administrative territorial entity political territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 122
[ANSWER] have diplomatic relations with atleast 122 administrative territories and political territories
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?o ) WHERE { { ?v property:P530 ?h . ?v rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?h . ?v rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 } } GROUP BY ?v } . FILTER ( ?o >= 122 ) }
Germany
Germany have diplomatic relations with atleast 122 administrative territories and political territories
Germany
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 122
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?o ) WHERE { { ?v property:diplomatic_relation ?h . ?v rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?h . ?v rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . FILTER ( ?o >= 122 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have tactful political relations with min number of political territories ?
(c(Q15617994),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?k ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?o ) WHERE { ?p property:P530 ?z . ?p rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?p } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?h ) WHERE { ?l property:P530 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?h = ?k ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?k ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?o ) WHERE { ?p property:diplomatic_relation ?z . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?p } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?h ) WHERE { ?l property:diplomatic_relation ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?h = ?k ) }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have tactful political relations with min number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?k ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?o ) WHERE { ?p property:P530 ?z . ?p rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?p } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?h ) WHERE { ?l property:P530 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?h = ?k ) }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen, Syria and Oman have tactful political relations with min number of political territories
Yemen Syria Oman
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?k ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?o ) WHERE { ?p property:diplomatic_relation ?z . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?p } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?h ) WHERE { ?l property:diplomatic_relation ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?h = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q408
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around the same number of administrative territories as Australia ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { ?x property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ontology:Q1048835 . resource:Q408 property:P530 ?l } } . FILTER ( ?g = ?u ) }
Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { ?x property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Australia property:diplomatic_relation ?l } } . FILTER ( ?g = ?u ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with around the same number of administrative territories as Australia
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { ?x property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ontology:Q1048835 . resource:Q408 property:P530 ?l } } . FILTER ( ?g = ?u ) }
Germany Australia
Germany and Australia have ambassadorial relations with around the same number of administrative territories as Australia
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { ?x property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Australia property:diplomatic_relation ?l } } . FILTER ( ?g = ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q769
P530
Q15617994 Q1048835
USER
And how about Grenada?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?k } } . FILTER ( ?c = ?r ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?c ) WHERE { ?n property:P530 ?x . ?n rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } }
Grenada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?k } } . FILTER ( ?c = ?r ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?c ) WHERE { ?n property:diplomatic_relation ?x . ?n rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?k } } . FILTER ( ?c = ?r ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?c ) WHERE { ?n property:P530 ?x . ?n rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?k } } . FILTER ( ?c = ?r ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?c ) WHERE { ?n property:diplomatic_relation ?x . ?n rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q183
P530
Q15617994
USER
How many administrative territories have diplomatic relations with Germany ?
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q183 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Germany
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
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))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q183 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
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q884
P530
Q15617994
USER
And what about South Korea?
(Q884,P530,c(Q15617994))
action count
action filter_type
action find
entity Q884
relation P530
type Q15617994
['Q884', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:Q884 property:P530 ?r . ?r rdf:type ontology:Q15617994 }
South Korea
action count
action filter_type
action find
entity South Korea
relation diplomatic relation
type designation for an administrative territorial entity
['South Korea', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:South_Korea property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
5
Q159 Q148 Q17 Q30 Q38
(Q884,P530,c(Q15617994))
action count
action filter_type
action find
entity Q884
relation P530
type Q15617994
[ANSWER]
['Q884', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:Q884 property:P530 ?r . ?r rdf:type ontology:Q15617994 }
Russia People's Republic of China Japan United States of America Italy
5
action count
action filter_type
action find
entity South Korea
relation diplomatic relation
type designation for an administrative territorial entity
['South Korea', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:South_Korea property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q155
Q15617994
USER
And also tell me about Brazil?
(Q155,P530,c(Q15617994))
action count
action filter_type
action find
entity Q155
relation P530
type Q15617994
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q155 property:P530 ?u }
Brazil
action count
action filter_type
action find
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Brazil property:diplomatic_relation ?u }
[]
designation for an administrative territorial entity
SYSTEM
53
(Q155,P530,c(Q15617994))
action count
action filter_type
action find
entity Q155
relation P530
type Q15617994
[ANSWER]
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q155 property:P530 ?u }
53
action count
action filter_type
action find
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Brazil property:diplomatic_relation ?u }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2009
P840
Q15617994 Q2342494 Q166142
USER
How many administrative territories are the narrative locations of more number of collectables or applications than Yukon ?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q2009
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q2342494 } UNION { ?l property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q166142 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { { ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q166142 } } . ?v property:P840 resource:Q2009 } } . FILTER ( ?k > ?f ) }
Yukon
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Yukon
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:collectable } UNION { ?l property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:application } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { { ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:application } } . ?v property:narrative_location resource:Yukon } } . FILTER ( ?k > ?f ) }
[]
designation for an administrative territorial entity collectable application
SYSTEM
31
Q805 Q668 Q414 Q142 Q55 Q148 Q399 Q1979 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q881 Q858 Q33 Q32 Q31 Q30 Q38 Q29 Q843 Q227 Q96 Q17 Q298 Q750 Q79 Q869
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q2009
relation P840
type Q2342494
type Q166142
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q2342494 } UNION { ?l property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q166142 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { { ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q166142 } } . ?v property:P840 resource:Q2009 } } . FILTER ( ?k > ?f ) }
Yemen India Argentina France Netherlands People's Republic of China Armenia Prince Edward Island Russia Turkey Greece Brazil Iraq Iran Afghanistan Vietnam Syria Finland Luxembourg Belgium United States of America Italy Spain Pakistan Azerbaijan Mexico Japan Chile Bolivia Egypt Thailand
31
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Yukon
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:collectable } UNION { ?l property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:application } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { { ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:application } } . ?v property:narrative_location resource:Yukon } } . FILTER ( ?k > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q236
P840
Q15617994 Q2342494 Q166142
USER
And also tell me about Montenegro?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q236
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?t WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?m rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P840 resource:Q236 . { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q166142 } } } } . FILTER ( ?s > ?r ) }
Montenegro
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Montenegro
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?t WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:application ) } . ?m rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:narrative_location resource:Montenegro . { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:application } } } } . FILTER ( ?s > ?r ) }
[]
designation for an administrative territorial entity collectable application
SYSTEM
86
Q805 Q20837 Q668 Q414 Q142 Q55 Q1948 Q145 Q148 Q265 Q712 Q711 Q837 Q252 Q399 Q403 Q1979 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q881 Q858 Q419 Q822 Q1974 Q490398 Q33 Q32 Q31 Q30 Q36 Q928 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q230 Q232 Q233 Q1045 Q1044 Q1041 Q29 Q1027 Q2009 Q843 Q2007 Q184 Q511806 Q227 Q225 Q223 Q96 Q17 Q1033 Q963 Q298 Q750 Q212 Q218 Q219 Q20571 Q1210 Q1005 Q833 Q683 Q874 Q79 Q948 Q817 Q810 Q1016 Q28 Q678 Q1952 Q869
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q236
relation P840
type Q2342494
type Q166142
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?t WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?m rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P840 resource:Q236 . { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q166142 } } } } . FILTER ( ?s > ?r ) }
Yemen Fanø India Argentina France Netherlands Manitoba United Kingdom People's Republic of China Uzbekistan Fiji Mongolia Nepal Indonesia Armenia Serbia Prince Edward Island Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan Vietnam Syria Peru Lebanon British Columbia Peenemünde Finland Luxembourg Belgium United States of America Poland Philippines Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Georgia Kazakhstan Malta Somalia Sierra Leone Senegal Spain Mauritius Yukon Pakistan Northwest Territories Belarus North Slope Borough Azerbaijan Bosnia and Herzegovina Greenland Mexico Japan Nigeria Botswana Chile Bolivia Ukraine Romania Bulgaria Spoleto Lombardy Gambia Malaysia Samoa Turkmenistan Egypt Tunisia Kuwait Jordan Libya Hungary Tonga Nova Scotia Thailand
86
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Montenegro
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?t WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:application ) } . ?m rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:narrative_location resource:Montenegro . { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:application } } } } . FILTER ( ?s > ?r ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q18333353 Q155
P530 P27
Q1048835
USER
Which political territories have diplomatic relations with Brazil and are Heinrich Eweler a civilian of ?
AND((Q155,P530,c(Q1048835)), (Q18333353,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q18333353
relation P27
type Q1048835
{'AND': [['Q155', 'P530', {'concept': 'Q1048835'}], ['Q18333353', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q155 property:P530 ?n . resource:Q18333353 property:P27 ?n }
Heinrich Eweler Brazil
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Heinrich Eweler
relation country of citizenship
type political territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Heinrich Eweler', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Brazil property:diplomatic_relation ?n . resource:Heinrich_Eweler property:country_of_citizenship ?n }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q155,P530,c(Q1048835)), (Q18333353,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q18333353
relation P27
type Q1048835
[ANSWER] have diplomatic relations with Brazil and are Heinrich Eweler a civilian of
{'AND': [['Q155', 'P530', {'concept': 'Q1048835'}], ['Q18333353', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q155 property:P530 ?n . resource:Q18333353 property:P27 ?n }
Germany
Germany have diplomatic relations with Brazil and are Heinrich Eweler a civilian of
Germany
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Heinrich Eweler
relation country of citizenship
type political territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Heinrich Eweler', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Brazil property:diplomatic_relation ?n . resource:Heinrich_Eweler property:country_of_citizenship ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with exactly 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { FILTER ( ?n = 3 ) . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 . ?p property:P530 ?u } GROUP BY ?p } }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { FILTER ( ?n = 3 ) . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity . ?p property:diplomatic_relation ?u } GROUP BY ?p } }
[]
political territorial entity political territorial entity
SYSTEM
2
Q35 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { FILTER ( ?n = 3 ) . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 . ?p property:P530 ?u } GROUP BY ?p } }
Denmark New Zealand
2
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { FILTER ( ?n = 3 ) . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity . ?p property:diplomatic_relation ?u } GROUP BY ?p } }
[]