Simple Question (Direct)
Simple Question
Q17486510
P19
Q13220204
USER
Which administrative country subdivision was Micael Héber Mendes Freire born in ?
(Q17486510,P19,c(Q13220204))
action filter_type
action find
entity Q17486510
relation P19
type Q13220204
['Q17486510', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { resource:Q17486510 property:P19 ?e . ?e rdf:type ontology:Q13220204 }
Micael Héber Mendes Freire
action filter_type
action find
entity Micael Héber Mendes Freire
relation place of birth
type second-level administrative country subdivision
['Micael Héber Mendes Freire', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { resource:Micael_Héber_Mendes_Freire property:place_of_birth ?e . ?e rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q564813
SYSTEM
Santa Maria da Feira Municipality
Q564813
(Q17486510,P19,c(Q13220204))
action filter_type
action find
entity Q17486510
relation P19
type Q13220204
Which administrative country subdivision was Micael Héber Mendes Freire born in
['Q17486510', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { resource:Q17486510 property:P19 ?e . ?e rdf:type ontology:Q13220204 }
Santa Maria da Feira Municipality
Which administrative country subdivision was Micael Héber Mendes Freire born in
Santa Maria da Feira Municipality
action filter_type
action find
entity Micael Héber Mendes Freire
relation place of birth
type second-level administrative country subdivision
['Micael Héber Mendes Freire', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { resource:Micael_Héber_Mendes_Freire property:place_of_birth ?e . ?e rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q564813
P190
Q15617994
USER
Which administrative territory is partner town of that administrative country subdivision ?
(Q564813,P190,c(Q15617994))
action filter_type
action find
entity Q564813
relation P190
type Q15617994
['Q564813', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q564813 property:P190 ?c . ?c rdf:type ontology:Q15617994 }
Santa Maria da Feira Municipality
action filter_type
action find
entity Santa Maria da Feira Municipality
relation sister city
type designation for an administrative territorial entity
['Santa Maria da Feira Municipality', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Santa_Maria_da_Feira_Municipality property:sister_city ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q51218
SYSTEM
Fara Filiorum Petri
Q51218
(Q564813,P190,c(Q15617994))
action filter_type
action find
entity Q564813
relation P190
type Q15617994
[ANSWER] is partner town of that administrative country subdivision
['Q564813', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q564813 property:P190 ?c . ?c rdf:type ontology:Q15617994 }
Fara Filiorum Petri
Fara Filiorum Petri is partner town of that administrative country subdivision
Fara Filiorum Petri
action filter_type
action find
entity Santa Maria da Feira Municipality
relation sister city
type designation for an administrative territorial entity
['Santa Maria da Feira Municipality', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Santa_Maria_da_Feira_Municipality property:sister_city ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q564813
Q515
USER
And which city?
(Q564813,P190,c(Q515))
action filter_type
action find
entity Q564813
relation P190
type Q515
['Q564813', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q564813 property:P190 ?l . ?l rdf:type ontology:Q515 }
Santa Maria da Feira Municipality
action filter_type
action find
entity Santa Maria da Feira Municipality
relation sister city
type city
['Santa Maria da Feira Municipality', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Santa_Maria_da_Feira_Municipality property:sister_city ?l . ?l rdf:type ontology:city }
[]
city
Q117676
SYSTEM
Viseu
Q117676
(Q564813,P190,c(Q515))
action filter_type
action find
entity Q564813
relation P190
type Q515
[ANSWER]
['Q564813', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q564813 property:P190 ?l . ?l rdf:type ontology:Q515 }
Viseu
Viseu
action filter_type
action find
entity Santa Maria da Feira Municipality
relation sister city
type city
['Santa Maria da Feira Municipality', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Santa_Maria_da_Feira_Municipality property:sister_city ?l . ?l rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are sister towns of that city ?
(Q117676,P190,c(Q56061))
action count
action filter_type
action find
entity Q117676
relation P190
type Q56061
['Q117676', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ontology:Q56061 . resource:Q117676 property:P190 ?u }
action count
action filter_type
action find
entity Viseu
relation sister city
type administrative territorial entity
['Viseu', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Viseu property:sister_city ?u }
[]
administrative territorial entity
SYSTEM
4
Q13957085 Q186254 Q109949 Q820476
(Q117676,P190,c(Q56061))
action count
action filter_type
action find
entity Q117676
relation P190
type Q56061
[ANSWER]
['Q117676', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ontology:Q56061 . resource:Q117676 property:P190 ?u }
São Filipe Haskovo Matola Ciudad Rodrigo
4
action count
action filter_type
action find
entity Viseu
relation sister city
type administrative territorial entity
['Viseu', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Viseu property:sister_city ?u }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1020
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have diplomatic relationships with greater number of political territories and administrative territories than Malawi ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q1020
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?m WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P530 resource:Q1020 . { { ?g rdf:type ontology:Q1048835 } UNION { ?g rdf:type ontology:Q15617994 } } } } . FILTER ( ?e > ?h ) }
Malawi
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Malawi
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?m WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:diplomatic_relation resource:Malawi . { { ?g rdf:type ontology:political_territorial_entity } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?e > ?h ) }
[]
designation for an administrative territorial entity political 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 Q262 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q230 Q233 Q20 Q1041 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q916 Q833 Q1009 Q1008 Q971 Q79 Q77 Q878 Q774 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q1020
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relationships with greater number of political territories and administrative territories than Malawi
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?m WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P530 resource:Q1020 . { { ?g rdf:type ontology:Q1048835 } UNION { ?g rdf:type ontology:Q15617994 } } } } . FILTER ( ?e > ?h ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Georgia Malta Norway Senegal Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Angola Malaysia Cameroon Côte d'Ivoire Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relationships with greater number of political territories and administrative territories than Malawi
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Malawi
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?m WHERE { ?l rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:diplomatic_relation resource:Malawi . { { ?g rdf:type ontology:political_territorial_entity } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?e > ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P47
Q15617994 Q20667921
USER
How many administrative territories and french administrative divisions are adjacent to Brazil ?
(Q155,P47,c(Q15617994)) (Q155,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q15617994
action filter_type
action find
entity Q155
relation P47
type Q20667921
['Q155', 'P47', {'concept': 'Q15617994'}] ['Q155', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { { resource:Q155 property:P47 ?n . ?n rdf:type ontology:Q15617994 } UNION { resource:Q155 property:P47 ?n . ?n rdf:type ontology:Q20667921 } }
Brazil
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Brazil
relation shares border with
type type of french administrative division
['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { { resource:Brazil property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Brazil property:shares_border_with ?n . ?n rdf:type ontology:type_of_french_administrative_division } }
[]
designation for an administrative territorial entity type of french administrative division
SYSTEM
10 administrative territories and 1 french administrative divisions
Q739 Q142 Q717 Q3769 Q730 Q733 Q734 Q419 Q77 Q414 Q750
(Q155,P47,c(Q15617994)) (Q155,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q15617994
action filter_type
action find
entity Q155
relation P47
type Q20667921
[ANSWER]
['Q155', 'P47', {'concept': 'Q15617994'}] ['Q155', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { { resource:Q155 property:P47 ?n . ?n rdf:type ontology:Q15617994 } UNION { resource:Q155 property:P47 ?n . ?n rdf:type ontology:Q20667921 } }
Colombia France Venezuela French Guiana Suriname Paraguay Guyana Peru Uruguay Argentina Bolivia
10 administrative territories and 1 french administrative divisions
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Brazil
relation shares border with
type type of french administrative division
['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { { resource:Brazil property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Brazil property:shares_border_with ?n . ?n rdf:type ontology:type_of_french_administrative_division } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16025223 Q17486510
P106
Q12737077
USER
Which occupations are the professions of Micael Héber Mendes Freire or Mark Schorr ?
OR((Q17486510,P106,c(Q12737077)), (Q16025223,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q17486510
relation P106
action find
entity Q16025223
relation P106
type Q12737077
{'OR': [['Q17486510', 'P106', {'concept': 'Q12737077'}], ['Q16025223', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q17486510 property:P106 ?c } UNION { resource:Q16025223 property:P106 ?c } } . ?c rdf:type ontology:Q12737077 }
Mark Schorr Micael Héber Mendes Freire
action filter_type
action union
action find
entity Micael Héber Mendes Freire
relation occupation
action find
entity Mark Schorr
relation occupation
type occupation
{'OR': [['Micael Héber Mendes Freire', 'occupation', {'concept': 'occupation'}], ['Mark Schorr', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Micael_Héber_Mendes_Freire property:occupation ?c } UNION { resource:Mark_Schorr property:occupation ?c } } . ?c rdf:type ontology:occupation }
[]
occupation
Q21036234 Q937857
SYSTEM
crime writer, association football player
Q21036234 Q937857
OR((Q17486510,P106,c(Q12737077)), (Q16025223,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q17486510
relation P106
action find
entity Q16025223
relation P106
type Q12737077
[ANSWERS] are the professions of Micael Héber Mendes Freire or Mark Schorr
{'OR': [['Q17486510', 'P106', {'concept': 'Q12737077'}], ['Q16025223', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q17486510 property:P106 ?c } UNION { resource:Q16025223 property:P106 ?c } } . ?c rdf:type ontology:Q12737077 }
crime writer association football player
Crime writer and association football player are the professions of Micael Héber Mendes Freire or Mark Schorr
crime writer association football player
action filter_type
action union
action find
entity Micael Héber Mendes Freire
relation occupation
action find
entity Mark Schorr
relation occupation
type occupation
{'OR': [['Micael Héber Mendes Freire', 'occupation', {'concept': 'occupation'}], ['Mark Schorr', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Micael_Héber_Mendes_Freire property:occupation ?c } UNION { resource:Mark_Schorr property:occupation ?c } } . ?c rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P495
Q874405 Q951964
USER
How many social groups and food products have Brazil as their place of origin ?
(c(Q874405),P495,Q155) (c(Q951964),P495,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P495
type Q874405
action filter_type
action find_reverse
entity Q155
relation P495
type Q951964
[{'concept': 'Q874405'}, 'P495', 'Q155'] [{'concept': 'Q951964'}, 'P495', 'Q155']
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { ?t property:P495 resource:Q155 . ?t rdf:type ontology:Q874405 } UNION { ?t property:P495 resource:Q155 . ?t rdf:type ontology:Q951964 } }
Brazil
action count
action union
action filter_type
action find_reverse
entity Brazil
relation country of origin
type social group
action filter_type
action find_reverse
entity Brazil
relation country of origin
type food product
[{'concept': 'social group'}, 'country of origin', 'Brazil'] [{'concept': 'food product'}, 'country of origin', 'Brazil']
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { ?t property:country_of_origin resource:Brazil . ?t rdf:type ontology:social_group } UNION { ?t property:country_of_origin resource:Brazil . ?t rdf:type ontology:food_product } }
[]
social group food product
SYSTEM
1 social groups and 3 food products
Q2687127 Q2002721 Q7695728 Q2914862
(c(Q874405),P495,Q155) (c(Q951964),P495,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P495
type Q874405
action filter_type
action find_reverse
entity Q155
relation P495
type Q951964
[ANSWER]
[{'concept': 'Q874405'}, 'P495', 'Q155'] [{'concept': 'Q951964'}, 'P495', 'Q155']
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { ?t property:P495 resource:Q155 . ?t rdf:type ontology:Q874405 } UNION { ?t property:P495 resource:Q155 . ?t rdf:type ontology:Q951964 } }
Beijinho paçoca TeleKommando brigadeiro
1 social groups and 3 food products
action count
action union
action filter_type
action find_reverse
entity Brazil
relation country of origin
type social group
action filter_type
action find_reverse
entity Brazil
relation country of origin
type food product
[{'concept': 'social group'}, 'country of origin', 'Brazil'] [{'concept': 'food product'}, 'country of origin', 'Brazil']
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { ?t property:country_of_origin resource:Brazil . ?t rdf:type ontology:social_group } UNION { ?t property:country_of_origin resource:Brazil . ?t rdf:type ontology:food_product } }
[]