Simple Question (Direct)
Simple Question
Q17815
P47
Q15617994
USER
Who share the border with Incisa Scapaccino ?
(Q17815,P47,c(Q15617994))
action filter_type
action find
entity Q17815
relation P47
type Q15617994
['Q17815', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q17815 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Incisa Scapaccino
action filter_type
action find
entity Incisa Scapaccino
relation shares border with
type designation for an administrative territorial entity
['Incisa Scapaccino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Incisa_Scapaccino property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17839 Q17630 Q17804
SYSTEM
Nizza Monferrato, Oviglio, Cortiglione
Q17804 Q17630 Q17272 Q17839 Q17874 Q17783 Q17379
(Q17815,P47,c(Q15617994))
action filter_type
action find
entity Q17815
relation P47
type Q15617994
[ANSWERS] share the border with Incisa Scapaccino
['Q17815', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q17815 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Cortiglione Oviglio Bergamasco Nizza Monferrato Vaglio Serra Castelnuovo Belbo Masio
Nizza Monferrato, Oviglio and Cortiglione share the border with Incisa Scapaccino
Nizza Monferrato Oviglio Cortiglione
action filter_type
action find
entity Incisa Scapaccino
relation shares border with
type designation for an administrative territorial entity
['Incisa Scapaccino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Incisa_Scapaccino property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q17839 Q17630 Q17804
P47
Q15617994
USER
Who share the border with Nizza Monferrato, Oviglio and Cortiglione ?
(Q17839,P47,c(Q15617994)) (Q17630,P47,c(Q15617994)) (Q17804,P47,c(Q15617994))
action union
action filter_type
action find
entity Q17839
relation P47
type Q15617994
action filter_type
action find
entity Q17630
relation P47
type Q15617994
action filter_type
action find
entity Q17804
relation P47
type Q15617994
['Q17839', 'P47', {'concept': 'Q15617994'}] ['Q17630', 'P47', {'concept': 'Q15617994'}] ['Q17804', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { resource:Q17839 property:P47 ?n . ?n rdf:type ontology:Q15617994 } UNION { resource:Q17630 property:P47 ?n . ?n rdf:type ontology:Q15617994 } }
Nizza Monferrato Oviglio Cortiglione
action union
action filter_type
action find
entity Nizza Monferrato
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Oviglio
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Cortiglione
relation shares border with
type designation for an administrative territorial entity
['Nizza Monferrato', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Oviglio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Cortiglione', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { resource:Nizza_Monferrato property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Oviglio property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q6088 Q17822 Q17327
SYSTEM
Alessandria, Mombaruzzo, Castellazzo Bormida
Q17775 Q17815 Q17810 Q17783 Q17822 Q17784 Q17874 Q17862 Q17759 Q17886 Q17815 Q17303 Q17281 Q17327 Q17272 Q17355 Q6088 Q17379 Q17673 Q17858 Q17815 Q17874 Q17379 Q17886 Q17752
(Q17839,P47,c(Q15617994)) (Q17630,P47,c(Q15617994)) (Q17804,P47,c(Q15617994))
action union
action filter_type
action find
entity Q17839
relation P47
type Q15617994
action filter_type
action find
entity Q17630
relation P47
type Q15617994
action filter_type
action find
entity Q17804
relation P47
type Q15617994
[ANSWERS] share the border with Nizza Monferrato, Oviglio and Cortiglione
['Q17839', 'P47', {'concept': 'Q15617994'}] ['Q17630', 'P47', {'concept': 'Q15617994'}] ['Q17804', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { resource:Q17839 property:P47 ?n . ?n rdf:type ontology:Q15617994 } UNION { resource:Q17630 property:P47 ?n . ?n rdf:type ontology:Q15617994 } }
Castel Boglione Incisa Scapaccino Fontanile Castelnuovo Belbo Mombaruzzo Castelnuovo Calcea Vaglio Serra San Marzano Oliveto Calamandrana Vinchio Incisa Scapaccino Carentino Borgoratto Alessandrino Castellazzo Bormida Bergamasco Felizzano Alessandria Masio Solero Rocchetta Tanaro Incisa Scapaccino Vaglio Serra Masio Vinchio Belveglio
Alessandria, Mombaruzzo and Castellazzo Bormida share the border with Nizza Monferrato, Oviglio and Cortiglione
Alessandria Mombaruzzo Castellazzo Bormida
action union
action filter_type
action find
entity Nizza Monferrato
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Oviglio
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Cortiglione
relation shares border with
type designation for an administrative territorial entity
['Nizza Monferrato', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Oviglio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Cortiglione', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { resource:Nizza_Monferrato property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Oviglio property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6088
P127
Q483110
USER
Which stadium is owned by that administrative territory ?
(c(Q483110),P127,Q6088)
action filter_type
action find_reverse
entity Q6088
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q6088']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q483110 . ?p property:P127 resource:Q6088 }
Alessandria
action filter_type
action find_reverse
entity Alessandria
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Alessandria']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:stadium . ?p property:owned_by resource:Alessandria }
[]
stadium
Clarification for simple ques.
Q17327
SYSTEM
Did you mean Castellazzo Bormida ?
Q6088 Q17822 Q17327
(c(Q483110),P127,Q6088) (c(Q483110),P127,Q17822) (c(Q483110),P127,Q17327)
[ANSWER]
[{'concept': 'Q483110'}, 'P127', 'Q6088'] [{'concept': 'Q483110'}, 'P127', 'Q17822'] [{'concept': 'Q483110'}, 'P127', 'Q17327']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q483110 . ?p property:P127 resource:Q6088 }
Alessandria Mombaruzzo Castellazzo Bormida
Did you mean Castellazzo Bormida ?
Castellazzo Bormida
[{'concept': 'stadium'}, 'owned by', 'Alessandria'] [{'concept': 'stadium'}, 'owned by', 'Mombaruzzo'] [{'concept': 'stadium'}, 'owned by', 'Castellazzo Bormida']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:stadium . ?p property:owned_by resource:Alessandria }
[]
Simple Question (Coreferenced)
USER
No, I meant Alessandria. Could you tell me the answer for that?
(c(Q483110),P127,Q6088)
Q6088
[{'concept': 'Q483110'}, 'P127', 'Q6088']
[{'concept': 'stadium'}, 'owned by', 'Alessandria']
[]
Q2484922
SYSTEM
Stadio Giuseppe Moccagatta
Q2484922
(c(Q483110),P127,Q6088)
action filter_type
action find_reverse
entity Q6088
relation P127
type Q483110
[ANSWER] is owned by that administrative territory
[{'concept': 'Q483110'}, 'P127', 'Q6088']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q483110 . ?p property:P127 resource:Q6088 }
Stadio Giuseppe Moccagatta
Stadio Giuseppe Moccagatta is owned by that administrative territory
Stadio Giuseppe Moccagatta
action filter_type
action find_reverse
entity Alessandria
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Alessandria']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:stadium . ?p property:owned_by resource:Alessandria }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P115
Q483110 Q12973014
USER
How many sports teams have exactly 2 stadia as their arena ?
(c(Q12973014),P115,c(Q483110))
action count
action equal
action find_tuple_counts
relation P115
type Q12973014
type Q483110
value 2
[{'concept': 'Q12973014'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { ?l property:P115 ?b . ?b rdf:type ontology:Q483110 . ?l rdf:type ontology:Q12973014 } GROUP BY ?l } . FILTER ( ?k = 2 ) }
action count
action equal
action find_tuple_counts
relation home venue
type sports team
type stadium
value 2
[{'concept': 'sports team'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { ?l property:home_venue ?b . ?b rdf:type ontology:stadium . ?l rdf:type ontology:sports_team } GROUP BY ?l } . FILTER ( ?k = 2 ) }
[]
stadium sports team
SYSTEM
4
Q8025768 Q5916414 Q213417 Q4938454
(c(Q12973014),P115,c(Q483110))
action count
action equal
action find_tuple_counts
relation P115
type Q12973014
type Q483110
value 2
[ANSWER]
[{'concept': 'Q12973014'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { ?l property:P115 ?b . ?b rdf:type ontology:Q483110 . ?l rdf:type ontology:Q12973014 } GROUP BY ?l } . FILTER ( ?k = 2 ) }
Winnipeg Maroons Houston Buffaloes New York Yankees Boise Hawks
4
action count
action equal
action find_tuple_counts
relation home venue
type sports team
type stadium
value 2
[{'concept': 'sports team'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { ?l property:home_venue ?b . ?b rdf:type ontology:stadium . ?l rdf:type ontology:sports_team } GROUP BY ?l } . FILTER ( ?k = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q2088357 Q2031291
USER
Which administrative territories are the countries of origin of approximately 1702 musical ensembles and releases ?
(c(Q2088357)|c(Q2031291),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
value 1702
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?s WHERE { VALUES ( ?v ) { ( ontology:Q2088357 ) ( ontology:Q2031291 ) } . ?r rdf:type ?v } GROUP BY ?s } . FILTER ( ?w = 1702 ) }
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
value 1702
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?s WHERE { VALUES ( ?v ) { ( ontology:musical_ensemble ) ( ontology:release ) } . ?r rdf:type ?v } GROUP BY ?s } . FILTER ( ?w = 1702 ) }
[]
designation for an administrative territorial entity musical ensemble release
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(Q2088357)|c(Q2031291),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
value 1702
[ANSWERS] are the countries of origin of approximately 1702 musical ensembles and releases
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?s WHERE { VALUES ( ?v ) { ( ontology:Q2088357 ) ( ontology:Q2031291 ) } . ?r rdf:type ?v } GROUP BY ?s } . FILTER ( ?w = 1702 ) }
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 approximately 1702 musical ensembles and releases
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
value 1702
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?s WHERE { VALUES ( ?v ) { ( ontology:musical_ensemble ) ( ontology:release ) } . ?r rdf:type ?v } GROUP BY ?s } . FILTER ( ?w = 1702 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q230
P47
Q15617994
USER
Which administrative territories share border with those ones ?
(Q38,P47,c(Q15617994)) (Q155,P47,c(Q15617994)) (Q230,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q38', 'P47', {'concept': 'Q15617994'}] ['Q155', 'P47', {'concept': 'Q15617994'}] ['Q230', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?r ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . ?q rdf:type ontology:Q15617994 . ?r property:P47 ?q }
Italy Brazil Georgia
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Georgia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?r ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:shares_border_with ?q }
[]
designation for an administrative territorial entity
Q159 Q142 Q142
SYSTEM
France for 2nd, 3rd, Russia for 1st
Q142 Q215 Q238 Q39 Q739 Q142 Q717 Q730 Q733 Q734 Q419 Q77 Q414 Q750 Q227 Q159 Q43 Q399
(Q38,P47,c(Q15617994)) (Q155,P47,c(Q15617994)) (Q230,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS]
['Q38', 'P47', {'concept': 'Q15617994'}] ['Q155', 'P47', {'concept': 'Q15617994'}] ['Q230', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?r ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . ?q rdf:type ontology:Q15617994 . ?r property:P47 ?q }
France Slovenia San Marino Switzerland Colombia France Venezuela Suriname Paraguay Guyana Peru Uruguay Argentina Bolivia Azerbaijan Russia Turkey Armenia
Russia, France and France share border with those ones
Russia France France
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Georgia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?r ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:shares_border_with ?q }
[]