Simple Question (Direct)
Simple Question
Q19301167
P19
Q20667921
USER
Which french administrative division was Max Havart born at ?
(Q19301167,P19,c(Q20667921))
action filter_type
action find
entity Q19301167
relation P19
type Q20667921
['Q19301167', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q19301167 property:P19 ?w . ?w rdf:type ontology:Q20667921 }
Max Havart
action filter_type
action find
entity Max Havart
relation place of birth
type type of french administrative division
['Max Havart', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Max_Havart property:place_of_birth ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6730
SYSTEM
Perpignan
Q6730
(Q19301167,P19,c(Q20667921))
action filter_type
action find
entity Q19301167
relation P19
type Q20667921
Max Havart was born in [ANSWER]
['Q19301167', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q19301167 property:P19 ?w . ?w rdf:type ontology:Q20667921 }
Perpignan
Max Havart was born in Perpignan
Perpignan
action filter_type
action find
entity Max Havart
relation place of birth
type type of french administrative division
['Max Havart', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Max_Havart property:place_of_birth ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6730
P47
Q20667921
USER
Who share the border with that one ?
(Q6730,P47,c(Q20667921))
action filter_type
action find
entity Q6730
relation P47
type Q20667921
['Q6730', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q6730 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Perpignan
action filter_type
action find
entity Perpignan
relation shares border with
type type of french administrative division
['Perpignan', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Perpignan property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q380514 Q779238 Q689466
SYSTEM
Canet-en-Roussillon, Pollestres, Rivesaltes
Q1059798 Q1071937 Q1110142 Q380514 Q8970 Q779238 Q1163139 Q195160 Q510703 Q689466 Q1369473 Q1350694 Q598624 Q1369439 Q778090
(Q6730,P47,c(Q20667921))
action filter_type
action find
entity Q6730
relation P47
type Q20667921
[ANSWERS] share the border with that one
['Q6730', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q6730 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Baho Bompas Villeneuve-de-la-Raho Canet-en-Roussillon Cabestany Pollestres Le Soler Peyrestortes Pia Rivesaltes Villelongue-de-la-Salanque Toulouges Canohès Saleilles Saint-Estève
Canet-en-Roussillon, Pollestres and Rivesaltes share the border with that one
Canet-en-Roussillon Pollestres Rivesaltes
action filter_type
action find
entity Perpignan
relation shares border with
type type of french administrative division
['Perpignan', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Perpignan property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6730
P159
Q43229
USER
Which organization has its head office location at Perpignan ?
(c(Q43229),P159,Q6730)
action filter_type
action find_reverse
entity Q6730
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q6730']
SELECT DISTINCT ?g WHERE { ?g property:P159 resource:Q6730 . ?g rdf:type ontology:Q43229 }
Perpignan
action filter_type
action find_reverse
entity Perpignan
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Perpignan']
SELECT DISTINCT ?g WHERE { ?g property:headquarters_location resource:Perpignan . ?g rdf:type ontology:organization }
[]
organization
Q2894600
SYSTEM
Bella
Q2894600
(c(Q43229),P159,Q6730)
action filter_type
action find_reverse
entity Q6730
relation P159
type Q43229
[ANSWER] has its head office location at Perpignan
[{'concept': 'Q43229'}, 'P159', 'Q6730']
SELECT DISTINCT ?g WHERE { ?g property:P159 resource:Q6730 . ?g rdf:type ontology:Q43229 }
Bella
Bella has its head office location at Perpignan
Bella
action filter_type
action find_reverse
entity Perpignan
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Perpignan']
SELECT DISTINCT ?g WHERE { ?g property:headquarters_location resource:Perpignan . ?g rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2894600
P495
Q15617994
USER
Which administrative territory is the country of origin of that organization ?
(Q2894600,P495,c(Q15617994))
action filter_type
action find
entity Q2894600
relation P495
type Q15617994
['Q2894600', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q2894600 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
Bella
action filter_type
action find
entity Bella
relation country of origin
type designation for an administrative territorial entity
['Bella', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bella property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2894600,P495,c(Q15617994))
action filter_type
action find
entity Q2894600
relation P495
type Q15617994
[ANSWER] is the country of origin of that organization
['Q2894600', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q2894600 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
France
France is the country of origin of that organization
France
action filter_type
action find
entity Bella
relation country of origin
type designation for an administrative territorial entity
['Bella', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bella property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q15416
USER
How many administrative territories are the countries of origin of lesser number of works of art and television programs than that administrative territory ?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q838948
type Q15416
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?u WHERE { VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?h rdf:type ?r } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P495 resource:Q142 . { { ?q rdf:type ontology:Q838948 } UNION { ?q rdf:type ontology:Q15416 } } } } . FILTER ( ?f < ?c ) }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?u WHERE { VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?h rdf:type ?r } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:country_of_origin resource:France . { { ?q rdf:type ontology:work_of_art } UNION { ?q rdf:type ontology:television_program } } } } . FILTER ( ?f < ?c ) }
[]
designation for an administrative territorial entity work of art television program
SYSTEM
165
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 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(Q838948)|c(Q15416),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q838948
type Q15416
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?u WHERE { VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?h rdf:type ?r } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P495 resource:Q142 . { { ?q rdf:type ontology:Q838948 } UNION { ?q rdf:type ontology:Q15416 } } } } . FILTER ( ?f < ?c ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands 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
165
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?u WHERE { VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?h rdf:type ?r } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:country_of_origin resource:France . { { ?q rdf:type ontology:work_of_art } UNION { ?q rdf:type ontology:television_program } } } } . FILTER ( ?f < ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with approximately 29 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 29
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { FILTER ( ?v = 29 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?v ) WHERE { ?j property:P530 ?e . ?j rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?j } }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 29
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { FILTER ( ?v = 29 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?v ) WHERE { ?j property:diplomatic_relation ?e . ?j rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 29
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { FILTER ( ?v = 29 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?v ) WHERE { ?j property:P530 ?e . ?j rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?j } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 29
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { FILTER ( ?v = 29 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?v ) WHERE { ?j property:diplomatic_relation ?e . ?j rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6730
P190
Q56061
USER
Which administrative territories are twin town of Perpignan ?
(c(Q56061),P190,Q6730)
action filter_type
action find_reverse
entity Q6730
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q6730']
SELECT DISTINCT ?k WHERE { ?k property:P190 resource:Q6730 . ?k rdf:type ontology:Q56061 }
Perpignan
action filter_type
action find_reverse
entity Perpignan
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Perpignan']
SELECT DISTINCT ?k WHERE { ?k property:sister_city resource:Perpignan . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492 Q1715 Q15090
SYSTEM
Barcelona, Hanover, Lleida
Q849524 Q205905 Q491540 Q15090 Q82070 Q864106 Q1715 Q1492
(c(Q56061),P190,Q6730)
action filter_type
action find_reverse
entity Q6730
relation P190
type Q56061
[ANSWERS] are twin town of Perpignan
[{'concept': 'Q56061'}, 'P190', 'Q6730']
SELECT DISTINCT ?k WHERE { ?k property:P190 resource:Q6730 . ?k rdf:type ontology:Q56061 }
Mostaganem Lancaster Sarasota Lleida Tyre Lake Charles Hanover Barcelona
Barcelona, Hanover and Lleida are twin town of Perpignan
Barcelona Hanover Lleida
action filter_type
action find_reverse
entity Perpignan
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Perpignan']
SELECT DISTINCT ?k WHERE { ?k property:sister_city resource:Perpignan . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1492 Q1715 Q15090
P190
Q515
USER
Which cities are partner town of those administrative territories ?
(c(Q515),P190,Q1492) (c(Q515),P190,Q1715) (c(Q515),P190,Q15090)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q1492'] [{'concept': 'Q515'}, 'P190', 'Q1715'] [{'concept': 'Q515'}, 'P190', 'Q15090']
SELECT DISTINCT ?p WHERE { ?p property:P190 ?e . ?p rdf:type ontology:Q515 . VALUES ( ?e ) { ( resource:Q849524 ) ( resource:Q205905 ) ( resource:Q491540 ) } }
Barcelona Hanover Lleida
action filter_type
action find_reverse
entity prev_answer
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Barcelona'] [{'concept': 'city'}, 'sister city', 'Hanover'] [{'concept': 'city'}, 'sister city', 'Lleida']
SELECT DISTINCT ?p WHERE { ?p property:sister_city ?e . ?p rdf:type ontology:city . VALUES ( ?e ) { ( resource:Mostaganem ) ( resource:Lancaster ) ( resource:Sarasota ) } }
[]
city
Q1486 Q11194 Q19689
SYSTEM
Buenos Aires, Sarajevo, Tirana
Q16520 Q42635 Q1486 Q1761 Q19689 Q11194 Q2079 Q185684
(c(Q515),P190,Q1492) (c(Q515),P190,Q1715) (c(Q515),P190,Q15090)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q515
[ANSWERS] are partner town of those administrative territories
[{'concept': 'Q515'}, 'P190', 'Q1492'] [{'concept': 'Q515'}, 'P190', 'Q1715'] [{'concept': 'Q515'}, 'P190', 'Q15090']
SELECT DISTINCT ?p WHERE { ?p property:P190 ?e . ?p rdf:type ontology:Q515 . VALUES ( ?e ) { ( resource:Q849524 ) ( resource:Q205905 ) ( resource:Q491540 ) } }
Busan Wenzhou Buenos Aires Dublin Tirana Sarajevo Leipzig Hefei
Buenos Aires, Sarajevo and Tirana are partner town of those administrative territories
Buenos Aires Sarajevo Tirana
action filter_type
action find_reverse
entity prev_answer
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Barcelona'] [{'concept': 'city'}, 'sister city', 'Hanover'] [{'concept': 'city'}, 'sister city', 'Lleida']
SELECT DISTINCT ?p WHERE { ?p property:sister_city ?e . ?p rdf:type ontology:city . VALUES ( ?e ) { ( resource:Mostaganem ) ( resource:Lancaster ) ( resource:Sarasota ) } }
[]