Simple Question (Direct)
Simple Question
Q361532
P19
Q15617994
USER
Which administrative territory is the place of birth of Paolo Flores d'Arcais ?
(Q361532,P19,c(Q15617994))
action filter_type
action find
entity Q361532
relation P19
type Q15617994
['Q361532', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q361532 property:P19 ?p }
Paolo Flores d'Arcais
action filter_type
action find
entity Paolo Flores d'Arcais
relation place of birth
type designation for an administrative territorial entity
["Paolo Flores d'Arcais", 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Paolo_Flores_d'Arcais property:place_of_birth ?p }
[]
designation for an administrative territorial entity
Q53241
SYSTEM
Cervignano del Friuli
Q53241
(Q361532,P19,c(Q15617994))
action filter_type
action find
entity Q361532
relation P19
type Q15617994
[ANSWER] is the place of birth of Paolo Flores d'Arcais
['Q361532', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q361532 property:P19 ?p }
Cervignano del Friuli
Cervignano del Friuli is the place of birth of Paolo Flores d'Arcais
Cervignano del Friuli
action filter_type
action find
entity Paolo Flores d'Arcais
relation place of birth
type designation for an administrative territorial entity
["Paolo Flores d'Arcais", 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Paolo_Flores_d'Arcais property:place_of_birth ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q53241
P47
Q15617994
USER
Which administrative territories have a shared border with that one ?
(Q53241,P47,c(Q15617994))
action filter_type
action find
entity Q53241
relation P47
type Q15617994
['Q53241', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q53241 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Cervignano del Friuli
action filter_type
action find
entity Cervignano del Friuli
relation shares border with
type designation for an administrative territorial entity
['Cervignano del Friuli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Cervignano_del_Friuli property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53348 Q53397 Q53383
SYSTEM
Ruda, Villa Vicentina, Torviscosa
Q53397 Q53348 Q53380 Q53383 Q53212 Q53223
(Q53241,P47,c(Q15617994))
action filter_type
action find
entity Q53241
relation P47
type Q15617994
[ANSWERS] have a shared border with that one
['Q53241', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q53241 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Villa Vicentina Ruda Terzo d'Aquileia Torviscosa Aiello del Friuli Bagnaria Arsa
Ruda, Villa Vicentina and Torviscosa have a shared border with that one
Ruda Villa Vicentina Torviscosa
action filter_type
action find
entity Cervignano del Friuli
relation shares border with
type designation for an administrative territorial entity
['Cervignano del Friuli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Cervignano_del_Friuli property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P19
Q502895
USER
How many people were born at that administrative territory ?
(c(Q502895),P19,Q53383)
[{'concept': 'Q502895'}, 'P19', 'Q53383']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q53383 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'place of birth', 'Torviscosa']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Torviscosa . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q53383
SYSTEM
Did you mean Torviscosa ?
(c(Q502895),P19,Q53348) (c(Q502895),P19,Q53397) (c(Q502895),P19,Q53383)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q53348'] [{'concept': 'Q502895'}, 'P19', 'Q53397'] [{'concept': 'Q502895'}, 'P19', 'Q53383']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q53383 . ?z rdf:type ontology:Q502895 }
Did you mean Torviscosa ?
Torviscosa
[{'concept': 'common name'}, 'place of birth', 'Ruda'] [{'concept': 'common name'}, 'place of birth', 'Villa Vicentina'] [{'concept': 'common name'}, 'place of birth', 'Torviscosa']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Torviscosa . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P19,Q53383)
[{'concept': 'Q502895'}, 'P19', 'Q53383']
[{'concept': 'common name'}, 'place of birth', 'Torviscosa']
[]
SYSTEM
4
Q3848850 Q3707205 Q3107902 Q3752809
(c(Q502895),P19,Q53383)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q53383']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q53383 . ?z rdf:type ontology:Q502895 }
Mario Musiello Diego Malisan Giuliano Musiello Frediano Sessi
4
[{'concept': 'common name'}, 'place of birth', 'Torviscosa']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Torviscosa . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q38 Q53348
P47 P17
Q15617994
USER
Which administrative territories are bordered by Ruda and are situated in Italy ?
AND((c(Q15617994),P47,Q53348), (c(Q15617994),P17,Q38))
action filter_type
action intersection
action find_reverse
entity Q53348
relation P47
action find_reverse
entity Q38
relation P17
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q53348'], [{'concept': 'Q15617994'}, 'P17', 'Q38']]}
SELECT DISTINCT ?x WHERE { ?x property:P47 resource:Q53348 . ?x property:P17 resource:Q38 . ?x rdf:type ontology:Q15617994 }
Italy Ruda
action filter_type
action intersection
action find_reverse
entity Ruda
relation shares border with
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ruda'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy']]}
SELECT DISTINCT ?x WHERE { ?x property:shares_border_with resource:Ruda . ?x property:country resource:Italy . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53241 Q53397 Q53234 Q53259 Q53212 Q53143 Q53146 Q53147
SYSTEM
Cervignano del Friuli, Villa Vicentina, Campolongo Tapogliano, Fiumicello, Aiello del Friuli, San Pier d'Isonzo, Turriaco, Villesse
Q53241 Q53397 Q53234 Q53259 Q53212 Q53143 Q53146 Q53147
AND((c(Q15617994),P47,Q53348), (c(Q15617994),P17,Q38))
action filter_type
action intersection
action find_reverse
entity Q53348
relation P47
action find_reverse
entity Q38
relation P17
type Q15617994
[ANSWERS] are bordered by Ruda and are situated in Italy
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q53348'], [{'concept': 'Q15617994'}, 'P17', 'Q38']]}
SELECT DISTINCT ?x WHERE { ?x property:P47 resource:Q53348 . ?x property:P17 resource:Q38 . ?x rdf:type ontology:Q15617994 }
Cervignano del Friuli Villa Vicentina Campolongo Tapogliano Fiumicello Aiello del Friuli San Pier d'Isonzo Turriaco Villesse
Cervignano del Friuli, Villa Vicentina, Campolongo Tapogliano, Fiumicello, Aiello del Friuli, San Pier d'Isonzo, Turriaco and Villesse are bordered by Ruda and are situated in Italy
Cervignano del Friuli Villa Vicentina Campolongo Tapogliano Fiumicello Aiello del Friuli San Pier d'Isonzo Turriaco Villesse
action filter_type
action intersection
action find_reverse
entity Ruda
relation shares border with
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ruda'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy']]}
SELECT DISTINCT ?x WHERE { ?x property:shares_border_with resource:Ruda . ?x property:country resource:Italy . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q26907711
P47
Q15617994
USER
Are district of the Australian Capital Territory bordered by those ones ?
(Q26907711,P47,Q53241) (Q26907711,P47,Q53397) (Q26907711,P47,Q53234) (Q26907711,P47,Q53259) (Q26907711,P47,Q53212) (Q26907711,P47,Q53143) (Q26907711,P47,Q53146) (Q26907711,P47,Q53147)
action is_in
entity prev_answer
action find
entity Q26907711
relation P47
['Q26907711', 'P47', 'Q53241'] ['Q26907711', 'P47', 'Q53397'] ['Q26907711', 'P47', 'Q53234'] ['Q26907711', 'P47', 'Q53259'] ['Q26907711', 'P47', 'Q53212'] ['Q26907711', 'P47', 'Q53143'] ['Q26907711', 'P47', 'Q53146'] ['Q26907711', 'P47', 'Q53147']
ASK WHERE { VALUES ( ?o ) { ( resource:Q53241 ) ( resource:Q53397 ) ( resource:Q53234 ) } . resource:Q26907711 property:P47 ?o }
district of the Australian Capital Territory
action is_in
entity prev_answer
action find
entity district of the Australian Capital Territory
relation shares border with
['district of the Australian Capital Territory', 'shares border with', 'Cervignano del Friuli'] ['district of the Australian Capital Territory', 'shares border with', 'Villa Vicentina'] ['district of the Australian Capital Territory', 'shares border with', 'Campolongo Tapogliano'] ['district of the Australian Capital Territory', 'shares border with', 'Fiumicello'] ['district of the Australian Capital Territory', 'shares border with', 'Aiello del Friuli'] ['district of the Australian Capital Territory', 'shares border with', "San Pier d'Isonzo"] ['district of the Australian Capital Territory', 'shares border with', 'Turriaco'] ['district of the Australian Capital Territory', 'shares border with', 'Villesse']
ASK WHERE { VALUES ( ?o ) { ( resource:Cervignano_del_Friuli ) ( resource:Villa_Vicentina ) ( resource:Campolongo_Tapogliano ) } . resource:district_of_the_Australian_Capital_Territory property:shares_border_with ?o }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q26907711,P47,Q53241) (Q26907711,P47,Q53397) (Q26907711,P47,Q53234) (Q26907711,P47,Q53259) (Q26907711,P47,Q53212) (Q26907711,P47,Q53143) (Q26907711,P47,Q53146) (Q26907711,P47,Q53147)
action is_in
entity prev_answer
action find
entity Q26907711
relation P47
[ANSWER]
['Q26907711', 'P47', 'Q53241'] ['Q26907711', 'P47', 'Q53397'] ['Q26907711', 'P47', 'Q53234'] ['Q26907711', 'P47', 'Q53259'] ['Q26907711', 'P47', 'Q53212'] ['Q26907711', 'P47', 'Q53143'] ['Q26907711', 'P47', 'Q53146'] ['Q26907711', 'P47', 'Q53147']
ASK WHERE { VALUES ( ?o ) { ( resource:Q53241 ) ( resource:Q53397 ) ( resource:Q53234 ) } . resource:Q26907711 property:P47 ?o }
No
action is_in
entity prev_answer
action find
entity district of the Australian Capital Territory
relation shares border with
['district of the Australian Capital Territory', 'shares border with', 'Cervignano del Friuli'] ['district of the Australian Capital Territory', 'shares border with', 'Villa Vicentina'] ['district of the Australian Capital Territory', 'shares border with', 'Campolongo Tapogliano'] ['district of the Australian Capital Territory', 'shares border with', 'Fiumicello'] ['district of the Australian Capital Territory', 'shares border with', 'Aiello del Friuli'] ['district of the Australian Capital Territory', 'shares border with', "San Pier d'Isonzo"] ['district of the Australian Capital Territory', 'shares border with', 'Turriaco'] ['district of the Australian Capital Territory', 'shares border with', 'Villesse']
ASK WHERE { VALUES ( ?o ) { ( resource:Cervignano_del_Friuli ) ( resource:Villa_Vicentina ) ( resource:Campolongo_Tapogliano ) } . resource:district_of_the_Australian_Capital_Territory property:shares_border_with ?o }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q53397 Q38 Q641490
P17
Q15617994
USER
Is Villa Vicentina located in Italy and Großseifen ?
(Q53397,P17,Q38) (Q53397,P17,Q641490)
action is_in
entity Q53397
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q641490
relation P17
['Q53397', 'P17', 'Q38'] ['Q53397', 'P17', 'Q641490']
ASK WHERE { resource:Q53397 property:P17 resource:Q38 . resource:Q53397 property:P17 resource:Q641490 }
Villa Vicentina Italy Großseifen
action is_in
entity Villa Vicentina
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Großseifen
relation country
['Villa Vicentina', 'country', 'Italy'] ['Villa Vicentina', 'country', 'Großseifen']
ASK WHERE { resource:Villa_Vicentina property:country resource:Italy . resource:Villa_Vicentina property:country resource:Großseifen }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q53397,P17,Q38) (Q53397,P17,Q641490)
action is_in
entity Q53397
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q641490
relation P17
[ANSWER]
['Q53397', 'P17', 'Q38'] ['Q53397', 'P17', 'Q641490']
ASK WHERE { resource:Q53397 property:P17 resource:Q38 . resource:Q53397 property:P17 resource:Q641490 }
YES and NO respectively
action is_in
entity Villa Vicentina
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Großseifen
relation country
['Villa Vicentina', 'country', 'Italy'] ['Villa Vicentina', 'country', 'Großseifen']
ASK WHERE { resource:Villa_Vicentina property:country resource:Italy . resource:Villa_Vicentina property:country resource:Großseifen }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q28
P495
Q15617994 Q2031291 Q2088357
USER
Which administrative territories are the countries of origin of around the same number of releases or musical ensembles as Hungary ?
(c(Q2031291)|c(Q2088357),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q28
relation P495
type Q2031291
type Q2088357
[[{'concept': 'Q2031291'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?r WHERE { { ?p property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q2031291 } UNION { ?p property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q2088357 } } GROUP BY ?r } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i property:P495 resource:Q28 . { { ?i rdf:type ontology:Q2088357 } UNION { ?i rdf:type ontology:Q2031291 } } } } }
Hungary
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Hungary
relation country of origin
type release
type musical ensemble
[[{'concept': 'release'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?r WHERE { { ?p property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:release } UNION { ?p property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:musical_ensemble } } GROUP BY ?r } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i property:country_of_origin resource:Hungary . { { ?i rdf:type ontology:musical_ensemble } UNION { ?i rdf:type ontology:release } } } } }
[]
designation for an administrative territorial entity release musical ensemble
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291)|c(Q2088357),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q28
relation P495
type Q2031291
type Q2088357
[ANSWERS] are the countries of origin of around the same number of releases or musical ensembles as Hungary
[[{'concept': 'Q2031291'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?r WHERE { { ?p property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q2031291 } UNION { ?p property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q2088357 } } GROUP BY ?r } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i property:P495 resource:Q28 . { { ?i rdf:type ontology:Q2088357 } UNION { ?i rdf:type ontology:Q2031291 } } } } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of around the same number of releases or musical ensembles as Hungary
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Hungary
relation country of origin
type release
type musical ensemble
[[{'concept': 'release'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?r WHERE { { ?p property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:release } UNION { ?p property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:musical_ensemble } } GROUP BY ?r } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i property:country_of_origin resource:Hungary . { { ?i rdf:type ontology:musical_ensemble } UNION { ?i rdf:type ontology:release } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q7725634 Q2031291
USER
Which administrative territories are the countries of origin of min number of literary works or releases ?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?r WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2031291 ) ( ontology:Q7725634 ) } } GROUP BY ?r } } . FILTER ( ?g = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?a WHERE { { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q7725634 . ?w property:P495 ?a } UNION { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2031291 . ?w property:P495 ?a } } GROUP BY ?a } }
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?r WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:release ) ( ontology:literary_work ) } } GROUP BY ?r } } . FILTER ( ?g = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?a WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:literary_work . ?w property:country_of_origin ?a } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:release . ?w property:country_of_origin ?a } } GROUP BY ?a } }
[]
designation for an administrative territorial entity literary work release
Q230 Q953 Q347
SYSTEM
Georgia, Zambia, Liechtenstein
Q805 Q804 Q800 Q1462 Q12536 Q262 Q783 Q265 Q36678 Q711 Q717 Q1460 Q399 Q398 Q403 Q657 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q986 Q822 Q241 Q244 Q811 Q153136 Q924 Q928 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q115 Q114 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
[ANSWERS] are the countries of origin of min number of literary works or releases
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?r WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2031291 ) ( ontology:Q7725634 ) } } GROUP BY ?r } } . FILTER ( ?g = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?a WHERE { { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q7725634 . ?w property:P495 ?a } UNION { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2031291 . ?w property:P495 ?a } } GROUP BY ?a } }
Yemen Panama Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan West Bank Mongolia Venezuela Sicily Armenia Bahrain Serbia Chad El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Eritrea Lebanon Cuba Barbados Nicaragua Habsburg Empire Tanzania Philippines North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Malta San Marino Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Iceland Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
Georgia, Zambia and Liechtenstein are the countries of origin of min number of literary works or releases
Georgia Zambia Liechtenstein
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?r WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:release ) ( ontology:literary_work ) } } GROUP BY ?r } } . FILTER ( ?g = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?a WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:literary_work . ?w property:country_of_origin ?a } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:release . ?w property:country_of_origin ?a } } GROUP BY ?a } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with approximately 12 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 12
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?s ) WHERE { ?o property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?s = 12 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?s ) WHERE { ?o property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?s = 12 ) }
[]
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
value 12
[ANSWERS] have diplomatic associations with approximately 12 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?s ) WHERE { ?o property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?s = 12 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic associations with approximately 12 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?s ) WHERE { ?o property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?s = 12 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q645469 Q53397
P27 P17
Q15617994
USER
Which administrative territories are Villa Vicentina situated in or are the native countriesof Rattlesnake Annie ?
OR((Q53397,P17,c(Q15617994)), (Q645469,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q53397
relation P17
action find
entity Q645469
relation P27
type Q15617994
{'OR': [['Q53397', 'P17', {'concept': 'Q15617994'}], ['Q645469', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q645469 property:P27 ?e } UNION { resource:Q53397 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Rattlesnake Annie Villa Vicentina
action filter_type
action union
action find
entity Villa Vicentina
relation country
action find
entity Rattlesnake Annie
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Villa Vicentina', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rattlesnake Annie', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Rattlesnake_Annie property:country_of_citizenship ?e } UNION { resource:Villa_Vicentina property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30
SYSTEM
Italy, United States of America
Q38 Q30
OR((Q53397,P17,c(Q15617994)), (Q645469,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q53397
relation P17
action find
entity Q645469
relation P27
type Q15617994
Rattlesnake Annie Villa Vicentina are situated in [ANSWERS] or are the native countriesof
{'OR': [['Q53397', 'P17', {'concept': 'Q15617994'}], ['Q645469', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q645469 property:P27 ?e } UNION { resource:Q53397 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Italy United States of America
Rattlesnake Annie Villa Vicentina are situated in Italy and United States of America or are the native countriesof
Italy United States of America
action filter_type
action union
action find
entity Villa Vicentina
relation country
action find
entity Rattlesnake Annie
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Villa Vicentina', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rattlesnake Annie', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Rattlesnake_Annie property:country_of_citizenship ?e } UNION { resource:Villa_Vicentina property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q645469
P21
Q290
USER
What is the sex of that person ?
(Q38,P21,c(Q290)) (Q30,P21,c(Q290))
action filter_type
action find
entity Q645469
relation P21
type Q290
['Q38', 'P21', {'concept': 'Q290'}] ['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q645469 property:P21 ?d . ?d rdf:type ontology:Q290 }
Rattlesnake Annie
action filter_type
action find
entity Rattlesnake Annie
relation gender
type sex
['Italy', 'gender', {'concept': 'sex'}] ['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Rattlesnake_Annie property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q38,P21,c(Q290)) (Q30,P21,c(Q290))
action filter_type
action find
entity Q645469
relation P21
type Q290
The sex of that person is the [ANSWER]
['Q38', 'P21', {'concept': 'Q290'}] ['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q645469 property:P21 ?d . ?d rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Rattlesnake Annie
relation gender
type sex
['Italy', 'gender', {'concept': 'sex'}] ['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Rattlesnake_Annie property:gender ?d . ?d rdf:type ontology:sex }
[]