Simple Question (Direct)
Simple Question
Q21486244
P937
Q56061
USER
What is the work location of Karin von Maur ?
(Q21486244,P937,c(Q56061))
action filter_type
action find
entity Q21486244
relation P937
type Q56061
['Q21486244', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q21486244 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Karin von Maur
action filter_type
action find
entity Karin von Maur
relation work location
type administrative territorial entity
['Karin von Maur', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Karin_von_Maur property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022
SYSTEM
Stuttgart
Q1022
(Q21486244,P937,c(Q56061))
action filter_type
action find
entity Q21486244
relation P937
type Q56061
The work location of Karin von Maur is in [ANSWER]
['Q21486244', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q21486244 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Stuttgart
The work location of Karin von Maur is in Stuttgart
Stuttgart
action filter_type
action find
entity Karin von Maur
relation work location
type administrative territorial entity
['Karin von Maur', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Karin_von_Maur property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1022
P190
Q56061
USER
Which administrative territories are twin city of that one ?
(c(Q56061),P190,Q1022)
action filter_type
action find
entity Q1022
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1022']
SELECT DISTINCT ?l WHERE { resource:Q1022 property:P190 ?l . ?l rdf:type ontology:Q56061 }
Stuttgart
action filter_type
action find
entity Stuttgart
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Stuttgart']
SELECT DISTINCT ?l WHERE { resource:Stuttgart property:sister_city ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1489 Q85 Q580
SYSTEM
Mexico City, Cairo, Łódź
Q1156 Q580 Q27435 Q153647 Q1489 Q85 Q894 Q10690 Q38022 Q571191
(c(Q56061),P190,Q1022)
action filter_type
action find
entity Q1022
relation P190
type Q56061
[ANSWERS] are twin city of that one
[{'concept': 'Q56061'}, 'P190', 'Q1022']
SELECT DISTINCT ?l WHERE { resource:Q1022 property:P190 ?l . ?l rdf:type ontology:Q56061 }
Mumbai Łódź Menzel Bourguiba St Helens Mexico City Cairo Samara Cardiff St. Louis Shavei Tzion
Mexico City, Cairo and Łódź are twin city of that one
Mexico City Cairo Łódź
action filter_type
action find
entity Stuttgart
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Stuttgart']
SELECT DISTINCT ?l WHERE { resource:Stuttgart property:sister_city ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1489
P1376
Q7275
USER
Which state has that administrative territory as its county seat ?
(Q1489,P1376,c(Q7275))
action filter_type
action find
entity Q1489
relation P1376
type Q7275
['Q1489', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { resource:Q1489 property:P1376 ?y . ?y rdf:type ontology:Q7275 }
Mexico City
action filter_type
action find
entity Mexico City
relation capital of
type state
['Mexico City', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { resource:Mexico_City property:capital_of ?y . ?y rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q1489
SYSTEM
Did you mean Mexico City ?
Q1489 Q85 Q580
(Q1489,P1376,c(Q7275)) (Q85,P1376,c(Q7275)) (Q580,P1376,c(Q7275))
[ANSWER]
['Q1489', 'P1376', {'concept': 'Q7275'}] ['Q85', 'P1376', {'concept': 'Q7275'}] ['Q580', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { resource:Q1489 property:P1376 ?y . ?y rdf:type ontology:Q7275 }
Mexico City Cairo Łódź
Did you mean Mexico City ?
Mexico City
['Mexico City', 'capital of', {'concept': 'state'}] ['Cairo', 'capital of', {'concept': 'state'}] ['Łódź', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { resource:Mexico_City property:capital_of ?y . ?y rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1489,P1376,c(Q7275))
['Q1489', 'P1376', {'concept': 'Q7275'}]
['Mexico City', 'capital of', {'concept': 'state'}]
[]
Q285658
SYSTEM
First Mexican Empire
Q285658
(Q1489,P1376,c(Q7275))
action filter_type
action find
entity Q1489
relation P1376
type Q7275
[ANSWER] has that administrative territory as its county seat
['Q1489', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { resource:Q1489 property:P1376 ?y . ?y rdf:type ontology:Q7275 }
First Mexican Empire
First Mexican Empire has that administrative territory as its county seat
First Mexican Empire
action filter_type
action find
entity Mexico City
relation capital of
type state
['Mexico City', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { resource:Mexico_City property:capital_of ?y . ?y rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17428152 Q285658
P19 P36
Q56061
USER
Which administrative territories are the capitals of First Mexican Empire or are the places of birth of Benoît Dispa ?
OR((Q285658,P36,c(Q56061)), (Q17428152,P19,c(Q56061)))
action filter_type
action union
action find
entity Q285658
relation P36
action find
entity Q17428152
relation P19
type Q56061
{'OR': [['Q285658', 'P36', {'concept': 'Q56061'}], ['Q17428152', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q17428152 property:P19 ?m } UNION { resource:Q285658 property:P36 ?m } } . ?m rdf:type ontology:Q56061 }
Benoît Dispa First Mexican Empire
action filter_type
action union
action find
entity First Mexican Empire
relation capital
action find
entity Benoît Dispa
relation place of birth
type administrative territorial entity
{'OR': [['First Mexican Empire', 'capital', {'concept': 'administrative territorial entity'}], ['Benoît Dispa', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Benoît_Dispa property:place_of_birth ?m } UNION { resource:First_Mexican_Empire property:capital ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3992 Q1489
SYSTEM
Liège, Mexico City
Q3992 Q1489
OR((Q285658,P36,c(Q56061)), (Q17428152,P19,c(Q56061)))
action filter_type
action union
action find
entity Q285658
relation P36
action find
entity Q17428152
relation P19
type Q56061
[ANSWERS] are the capitals of First Mexican Empire or are the places of birth of Benoît Dispa
{'OR': [['Q285658', 'P36', {'concept': 'Q56061'}], ['Q17428152', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q17428152 property:P19 ?m } UNION { resource:Q285658 property:P36 ?m } } . ?m rdf:type ontology:Q56061 }
Liège Mexico City
Liège and Mexico City are the capitals of First Mexican Empire or are the places of birth of Benoît Dispa
Liège Mexico City
action filter_type
action union
action find
entity First Mexican Empire
relation capital
action find
entity Benoît Dispa
relation place of birth
type administrative territorial entity
{'OR': [['First Mexican Empire', 'capital', {'concept': 'administrative territorial entity'}], ['Benoît Dispa', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Benoît_Dispa property:place_of_birth ?m } UNION { resource:First_Mexican_Empire property:capital ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17428152
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q3992,P39,c(Q12737077)) (Q1489,P39,c(Q12737077))
action filter_type
action find
entity Q17428152
relation P39
type Q12737077
['Q3992', 'P39', {'concept': 'Q12737077'}] ['Q1489', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q17428152 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Benoît Dispa
action filter_type
action find
entity Benoît Dispa
relation position held
type occupation
['Liège', 'position held', {'concept': 'occupation'}] ['Mexico City', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Benoît_Dispa property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q15705021
SYSTEM
member of the Chamber of Representatives of Belgium
Q15705021
(Q3992,P39,c(Q12737077)) (Q1489,P39,c(Q12737077))
action filter_type
action find
entity Q17428152
relation P39
type Q12737077
The [ANSWER]
['Q3992', 'P39', {'concept': 'Q12737077'}] ['Q1489', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q17428152 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
member of the Chamber of Representatives of Belgium
The member of the Chamber of Representatives of Belgium
member of the Chamber of Representatives of Belgium
action filter_type
action find
entity Benoît Dispa
relation position held
type occupation
['Liège', 'position held', {'concept': 'occupation'}] ['Mexico City', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Benoît_Dispa property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17428152
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Benoît Dispa ?
(Q17428152,P27,c(Q15617994))
action filter_type
action find
entity Q17428152
relation P27
type Q15617994
['Q17428152', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q17428152 property:P27 ?t }
Benoît Dispa
action filter_type
action find
entity Benoît Dispa
relation country of citizenship
type designation for an administrative territorial entity
['Benoît Dispa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Benoît_Dispa property:country_of_citizenship ?t }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q17428152,P27,c(Q15617994))
action filter_type
action find
entity Q17428152
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Benoît Dispa
['Q17428152', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q17428152 property:P27 ?t }
Belgium
Belgium is the country of citizenship of Benoît Dispa
Belgium
action filter_type
action find
entity Benoît Dispa
relation country of citizenship
type designation for an administrative territorial entity
['Benoît Dispa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Benoît_Dispa property:country_of_citizenship ?t }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q31 Q102558 Q447043
P530
Q15617994
USER
Does that administrative territory have diplomatic associations with Agazzano and Altzellen ?
(Q31,P530,Q102558) (Q31,P530,Q447043)
action is_in
entity Q31
action intersection
action find_reverse
entity Q102558
relation P530
action find_reverse
entity Q447043
relation P530
['Q31', 'P530', 'Q102558'] ['Q31', 'P530', 'Q447043']
ASK WHERE { resource:Q31 property:P530 resource:Q102558 . resource:Q31 property:P530 resource:Q447043 }
Belgium Agazzano Altzellen
action is_in
entity Belgium
action intersection
action find_reverse
entity Agazzano
relation diplomatic relation
action find_reverse
entity Altzellen
relation diplomatic relation
['Belgium', 'diplomatic relation', 'Agazzano'] ['Belgium', 'diplomatic relation', 'Altzellen']
ASK WHERE { resource:Belgium property:diplomatic_relation resource:Agazzano . resource:Belgium property:diplomatic_relation resource:Altzellen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q31,P530,Q102558) (Q31,P530,Q447043)
action is_in
entity Q31
action intersection
action find_reverse
entity Q102558
relation P530
action find_reverse
entity Q447043
relation P530
[ANSWER]
['Q31', 'P530', 'Q102558'] ['Q31', 'P530', 'Q447043']
ASK WHERE { resource:Q31 property:P530 resource:Q102558 . resource:Q31 property:P530 resource:Q447043 }
No
action is_in
entity Belgium
action intersection
action find_reverse
entity Agazzano
relation diplomatic relation
action find_reverse
entity Altzellen
relation diplomatic relation
['Belgium', 'diplomatic relation', 'Agazzano'] ['Belgium', 'diplomatic relation', 'Altzellen']
ASK WHERE { resource:Belgium property:diplomatic_relation resource:Agazzano . resource:Belgium property:diplomatic_relation resource:Altzellen }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with around 73 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?t ) WHERE { ?w property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?t = 73 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?t ) WHERE { ?w property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?t = 73 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?t ) WHERE { ?w property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?t = 73 ) }
Australia Canada
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?t ) WHERE { ?w property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?t = 73 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q921
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with more number of administrative territories than Brunei ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q921
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?f ) WHERE { ?e rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?e property:P530 ?a } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Q921 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?x ) }
Brunei
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Brunei
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?f ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?a } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Brunei property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?x ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q921
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with more number of administrative territories than Brunei
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?f ) WHERE { ?e rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?e property:P530 ?a } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Q921 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?x ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relations with more number of administrative territories than Brunei
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Brunei
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?f ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?a } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Brunei property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q225
P530
Q15617994 Q15617994
USER
And also tell me about Bosnia and Herzegovina?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q225
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q225 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?x ) WHERE { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?r property:P530 ?p } GROUP BY ?r } }
Bosnia and Herzegovina
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bosnia and Herzegovina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Bosnia_and_Herzegovina property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?x ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?p } GROUP BY ?r } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q148 Q159 Q155 Q30 Q929 Q38 Q230 Q184 Q17 Q114 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q225
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q225 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?x ) WHERE { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?r property:P530 ?p } GROUP BY ?r } }
Israel Yemen France People's Republic of China Russia Brazil United States of America Central African Republic Italy Georgia Belarus Japan Kenya Syria Cape Verde Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bosnia and Herzegovina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Bosnia_and_Herzegovina property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?x ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?p } GROUP BY ?r } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1489 Q613
P190
Q56061
USER
How many administrative territories are partner town of Mexico City and Emirate of Dubai ?
(c(Q56061),P190,Q1489) (c(Q56061),P190,Q613)
action count
action intersection
action filter_type
action find_reverse
entity Q1489
relation P190
type Q56061
action filter_type
action find_reverse
entity Q613
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1489'] [{'concept': 'Q56061'}, 'P190', 'Q613']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P190 resource:Q1489 . ?u rdf:type ontology:Q56061 . ?u property:P190 resource:Q613 . ?u rdf:type ontology:Q56061 }
Mexico City Emirate of Dubai
action count
action intersection
action filter_type
action find_reverse
entity Mexico City
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Emirate of Dubai
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Mexico City'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Emirate of Dubai']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:sister_city resource:Mexico_City . ?u rdf:type ontology:administrative_territorial_entity . ?u property:sister_city resource:Emirate_of_Dubai . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
2
Q3820 Q406
(c(Q56061),P190,Q1489) (c(Q56061),P190,Q613)
action count
action intersection
action filter_type
action find_reverse
entity Q1489
relation P190
type Q56061
action filter_type
action find_reverse
entity Q613
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q1489'] [{'concept': 'Q56061'}, 'P190', 'Q613']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P190 resource:Q1489 . ?u rdf:type ontology:Q56061 . ?u property:P190 resource:Q613 . ?u rdf:type ontology:Q56061 }
Beirut Istanbul
2
action count
action intersection
action filter_type
action find_reverse
entity Mexico City
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Emirate of Dubai
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Mexico City'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Emirate of Dubai']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:sister_city resource:Mexico_City . ?u rdf:type ontology:administrative_territorial_entity . ?u property:sister_city resource:Emirate_of_Dubai . ?u rdf:type ontology:administrative_territorial_entity }
[]