Simple Question (Direct)
Simple Question
Q295824
P22
Q502895
USER
Who was the dad of Peter I of Portugal ?
(Q295824,P22,c(Q502895))
action filter_type
action find
entity Q295824
relation P22
type Q502895
['Q295824', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q295824 property:P22 ?f . ?f rdf:type ontology:Q502895 }
Peter I of Portugal
action filter_type
action find
entity Peter I of Portugal
relation father
type common name
['Peter I of Portugal', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Peter_I_of_Portugal property:father ?f . ?f rdf:type ontology:common_name }
[]
common name
Q272903
SYSTEM
Afonso IV of Portugal
Q272903
(Q295824,P22,c(Q502895))
action filter_type
action find
entity Q295824
relation P22
type Q502895
The dad of Peter I of Portugal was King [ANSWER]
['Q295824', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q295824 property:P22 ?f . ?f rdf:type ontology:Q502895 }
Afonso IV of Portugal
The dad of Peter I of Portugal was King Afonso IV of Portugal
Afonso IV of Portugal
action filter_type
action find
entity Peter I of Portugal
relation father
type common name
['Peter I of Portugal', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Peter_I_of_Portugal property:father ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q272903
P20
Q56061
USER
Where did the demise of that person occur ?
(Q272903,P20,c(Q56061))
action filter_type
action find
entity Q272903
relation P20
type Q56061
['Q272903', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q272903 property:P20 ?e }
Afonso IV of Portugal
action filter_type
action find
entity Afonso IV of Portugal
relation place of death
type administrative territorial entity
['Afonso IV of Portugal', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Afonso_IV_of_Portugal property:place_of_death ?e }
[]
administrative territorial entity
Q597
SYSTEM
Lisbon
Q597
(Q272903,P20,c(Q56061))
action filter_type
action find
entity Q272903
relation P20
type Q56061
The demise of that person occurred in [ANSWER]
['Q272903', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q272903 property:P20 ?e }
Lisbon
The demise of that person occurred in Lisbon
Lisbon
action filter_type
action find
entity Afonso IV of Portugal
relation place of death
type administrative territorial entity
['Afonso IV of Portugal', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Afonso_IV_of_Portugal property:place_of_death ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q597
P159
Q895526
USER
Which authority organs have their head office location at that administrative territory ?
(c(Q895526),P159,Q597)
action filter_type
action find_reverse
entity Q597
relation P159
type Q895526
[{'concept': 'Q895526'}, 'P159', 'Q597']
SELECT DISTINCT ?c WHERE { ?c property:P159 resource:Q597 . ?c rdf:type ontology:Q895526 }
Lisbon
action filter_type
action find_reverse
entity Lisbon
relation headquarters location
type authority organ
[{'concept': 'authority organ'}, 'headquarters location', 'Lisbon']
SELECT DISTINCT ?c WHERE { ?c property:headquarters_location resource:Lisbon . ?c rdf:type ontology:authority_organ }
[]
authority organ
Q4671102 Q4294868 Q7232685
SYSTEM
Academia de Marinha, Ministry of Justice, Portuguese Securities Market Commission
Q7232685 Q6039514 Q4826948 Q10330390 Q4294357 Q4294767 Q4671102 Q4294790 Q4294868
(c(Q895526),P159,Q597)
action filter_type
action find_reverse
entity Q597
relation P159
type Q895526
[ANSWERS] have their head office location at that administrative territory
[{'concept': 'Q895526'}, 'P159', 'Q597']
SELECT DISTINCT ?c WHERE { ?c property:P159 resource:Q597 . ?c rdf:type ontology:Q895526 }
Portuguese Securities Market Commission Institute for Nature Conservation and Biodiversity Autoridade Nacional de Comunicações Navy Ministry Ministry of Health Ministry of Labour and Social Solidarity Academia de Marinha Ministry of Finance Ministry of Justice
Academia de Marinha, Ministry of Justice and Portuguese Securities Market Commission have their head office location at that administrative territory
Academia de Marinha Ministry of Justice Portuguese Securities Market Commission
action filter_type
action find_reverse
entity Lisbon
relation headquarters location
type authority organ
[{'concept': 'authority organ'}, 'headquarters location', 'Lisbon']
SELECT DISTINCT ?c WHERE { ?c property:headquarters_location resource:Lisbon . ?c rdf:type ontology:authority_organ }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q597
P1444
Q22348500
USER
Which cycling race class finishes the journey at that administrative territory ?
(c(Q22348500),P1444,Q4671102) (c(Q22348500),P1444,Q4294868) (c(Q22348500),P1444,Q7232685)
action filter_type
action find_reverse
entity Q597
relation P1444
type Q22348500
[{'concept': 'Q22348500'}, 'P1444', 'Q4671102'] [{'concept': 'Q22348500'}, 'P1444', 'Q4294868'] [{'concept': 'Q22348500'}, 'P1444', 'Q7232685']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q22348500 . ?e property:P1444 resource:Q597 }
Lisbon
action filter_type
action find_reverse
entity Lisbon
relation destination point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Academia de Marinha'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Ministry of Justice'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Portuguese Securities Market Commission']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?e property:destination_point resource:Lisbon }
[]
cycling race class defined by the International Cycling Union
Q20740354
SYSTEM
2016 Volta a Portugal
Q20740354
(c(Q22348500),P1444,Q4671102) (c(Q22348500),P1444,Q4294868) (c(Q22348500),P1444,Q7232685)
action filter_type
action find_reverse
entity Q597
relation P1444
type Q22348500
[ANSWER] finishes the journey at that administrative territory
[{'concept': 'Q22348500'}, 'P1444', 'Q4671102'] [{'concept': 'Q22348500'}, 'P1444', 'Q4294868'] [{'concept': 'Q22348500'}, 'P1444', 'Q7232685']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q22348500 . ?e property:P1444 resource:Q597 }
2016 Volta a Portugal
2016 Volta a Portugal finishes the journey at that administrative territory
2016 Volta a Portugal
action filter_type
action find_reverse
entity Lisbon
relation destination point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Academia de Marinha'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Ministry of Justice'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Portuguese Securities Market Commission']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?e property:destination_point resource:Lisbon }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q47372 Q597
P1444
Q22348500
USER
Or Magreglio?
OR((c(Q22348500),P1444,Q597), (c(Q22348500),P1444,Q47372))
action filter_type
action union
action find_reverse
entity Q597
relation P1444
action find_reverse
entity Q47372
relation P1444
type Q22348500
{'OR': [[{'concept': 'Q22348500'}, 'P1444', 'Q597'], [{'concept': 'Q22348500'}, 'P1444', 'Q47372']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?n ) { ( resource:Q47372 ) ( resource:Q597 ) } . ?v property:P1444 ?n } . ?v rdf:type ontology:Q22348500 }
Magreglio Lisbon
action filter_type
action union
action find_reverse
entity Lisbon
relation destination point
action find_reverse
entity Magreglio
relation destination point
type cycling race class defined by the International Cycling Union
{'OR': [[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Lisbon'], [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Magreglio']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?n ) { ( resource:Magreglio ) ( resource:Lisbon ) } . ?v property:destination_point ?n } . ?v rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
cycling race class defined by the International Cycling Union
Q3768641 Q20740354
SYSTEM
2006 Giro d'Italia Femminile, 2016 Volta a Portugal
Q3768641 Q20740354
OR((c(Q22348500),P1444,Q597), (c(Q22348500),P1444,Q47372))
action filter_type
action union
action find_reverse
entity Q597
relation P1444
action find_reverse
entity Q47372
relation P1444
type Q22348500
[ANSWERS]
{'OR': [[{'concept': 'Q22348500'}, 'P1444', 'Q597'], [{'concept': 'Q22348500'}, 'P1444', 'Q47372']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?n ) { ( resource:Q47372 ) ( resource:Q597 ) } . ?v property:P1444 ?n } . ?v rdf:type ontology:Q22348500 }
2006 Giro d'Italia Femminile 2016 Volta a Portugal
2006 Giro d'Italia Femminile 2016 Volta a Portugal
action filter_type
action union
action find_reverse
entity Lisbon
relation destination point
action find_reverse
entity Magreglio
relation destination point
type cycling race class defined by the International Cycling Union
{'OR': [[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Lisbon'], [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Magreglio']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?n ) { ( resource:Magreglio ) ( resource:Lisbon ) } . ?v property:destination_point ?n } . ?v rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q47372 Q273533
P47
Q1048835
USER
How many political territories do Magreglio or Guarda District share a border with ?
(c(Q1048835),P47,Q47372) (c(Q1048835),P47,Q273533)
action count
action union
action filter_type
action find_reverse
entity Q47372
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q273533
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q47372'] [{'concept': 'Q1048835'}, 'P47', 'Q273533']
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:P47 resource:Q47372 . ?s rdf:type ontology:Q1048835 } UNION { ?s property:P47 resource:Q273533 . ?s rdf:type ontology:Q1048835 } }
Magreglio Guarda District
action count
action union
action filter_type
action find_reverse
entity Magreglio
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Guarda District
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Magreglio'] [{'concept': 'political territorial entity'}, 'shares border with', 'Guarda District']
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:shares_border_with resource:Magreglio . ?s rdf:type ontology:political_territorial_entity } UNION { ?s property:shares_border_with resource:Guarda_District . ?s rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
2
Q5739 Q5777
(c(Q1048835),P47,Q47372) (c(Q1048835),P47,Q273533)
action count
action union
action filter_type
action find_reverse
entity Q47372
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q273533
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q47372'] [{'concept': 'Q1048835'}, 'P47', 'Q273533']
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:P47 resource:Q47372 . ?s rdf:type ontology:Q1048835 } UNION { ?s property:P47 resource:Q273533 . ?s rdf:type ontology:Q1048835 } }
Castile and León Extremadura
2
action count
action union
action filter_type
action find_reverse
entity Magreglio
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Guarda District
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Magreglio'] [{'concept': 'political territorial entity'}, 'shares border with', 'Guarda District']
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:shares_border_with resource:Magreglio . ?s rdf:type ontology:political_territorial_entity } UNION { ?s property:shares_border_with resource:Guarda_District . ?s rdf:type ontology:political_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P137
Q895526 Q62447 Q1076486
USER
How many authority organs can manage approximately 3 aerodromes and sports venues ?
(c(Q62447)|c(Q1076486),P137,c(Q895526))
action count
action approx
action union
action find_reverse_tuple_counts
relation P137
type Q895526
type Q62447
action find_reverse_tuple_counts
relation P137
type Q895526
type Q1076486
value 3
[[{'concept': 'Q62447'}, {'concept': 'Q1076486'}], 'P137', {'concept': 'Q895526'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?r WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:Q62447 ) ( ontology:Q1076486 ) } } GROUP BY ?r } . FILTER ( ?w = 3 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation operator
type authority organ
type aerodrome
action find_reverse_tuple_counts
relation operator
type authority organ
type sports venue
value 3
[[{'concept': 'aerodrome'}, {'concept': 'sports venue'}], 'operator', {'concept': 'authority organ'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?r WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:aerodrome ) ( ontology:sports_venue ) } } GROUP BY ?r } . FILTER ( ?w = 3 ) }
[]
authority organ aerodrome sports venue
SYSTEM
107
Q3869731 Q6781521 Q349487 Q5251253 Q2728585 Q1677108 Q10677695 Q1194749 Q6462132 Q6781490 Q4969732 Q7374037 Q3259709 Q7834923 Q214700 Q16827826 Q1264458 Q1967252 Q643628 Q2397965 Q6806634 Q207361 Q1646331 Q1998985 Q5598354 Q1416884 Q631844 Q3349581 Q1589820 Q7414072 Q1467508 Q193755 Q111854 Q7707904 Q7989618 Q614819 Q383520 Q860935 Q7596470 Q21570203 Q5440270 Q1706660 Q7061278 Q6974770 Q4116375 Q5531834 Q701679 Q674113 Q2625260 Q316296 Q7488854 Q1750377 Q10635976 Q3365478 Q5251219 Q1480245 Q2122615 Q5172805 Q1058767 Q834046 Q21532960 Q1484023 Q3015291 Q538101 Q3360446 Q1063287 Q1164325 Q3785211 Q24568054 Q1770101 Q3364902 Q3488215 Q5401570 Q480214 Q1532785 Q2304226 Q5020425 Q5020422 Q60346 Q5260295 Q1010548 Q12041640 Q7687416 Q5161516 Q1182587 Q1466498 Q3029524 Q1117048 Q2502839 Q1010556 Q920339 Q349666 Q21532850 Q17006271 Q5062430 Q3087818 Q3306020 Q5060058 Q807013 Q21538549 Q7257666 Q7061065 Q1437507 Q1134658 Q21538546 Q1937208 Q1583868
(c(Q62447)|c(Q1076486),P137,c(Q895526))
action count
action approx
action union
action find_reverse_tuple_counts
relation P137
type Q895526
type Q62447
action find_reverse_tuple_counts
relation P137
type Q895526
type Q1076486
value 3
[ANSWER]
[[{'concept': 'Q62447'}, {'concept': 'Q1076486'}], 'P137', {'concept': 'Q895526'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?r WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:Q62447 ) ( ontology:Q1076486 ) } } GROUP BY ?r } . FILTER ( ?w = 3 ) }
NYC Media Maryland Transportation Authority Parks Canada Defence Science and Technology Laboratory Norwegian Mapping and Cadastre Authority Swedish Transport Administration Swedish National Maritime Museums government of Spain South Jersey Transportation Authority Maryland Stadium Authority British Columbia Ministry of Transportation Royal Commission on the Ancient and Historical Monuments of Wales Los Angeles County Sheriff's Department Transport for New South Wales National Oceanic and Atmospheric Administration Bolivarian Agency for Space Activities Government of Slovenia U.S. National Geodetic Survey Bavarian State Office for Survey and Geoinformation Texas Historical Commission Medicare Australia DARPA Pennsylvania Turnpike Commission Sécurité Civile Grays Harbor Historical Seaport Authority Fine Arts Department Swedish National Heritage Board Tunisian Civil Aviation & Airports Authority Chief Directorate of the Northern Sea Route San Francisco Municipal Transportation Agency Wisconsin Department of Natural Resources United States Geological Survey Historic Scotland Texas Parks and Wildlife Department Westrail De Lijn Canadian Coast Guard Japan Meteorological Agency Stadium Authority of the City of Pittsburgh Department of Wildlife and National Parks Federal Judicial Center New York State Office of Parks, Recreation and Historic Preservation Norges Statsbaner National Parks and Wildlife Service East Bay Regional Park District General Directorate of Highways Civil Aeronautics Administration United States Fish and Wildlife Service Government of Åland Deutsche Post of the GDR Shannon Development Department of Justice, Rating, Titles and Qualification Swedish Polar Research Secretariat Parks Victoria Defence Materiel Administration National Defence Radio Establishment Queensland Parks and Wildlife Service Corrections Victoria New York City Department of Transportation Ministry of Land and Resources of the People's Republic of China Director of National Parks War Shipping Administration Northern Ireland Prison Service New Zealand Railways Department Finnish Transport Agency Saudi Arabia Armed Forces Danish Meteorological Institute Heritage Malta National Commission of Protected Natural Areas Brønnøysund Register Centre Ontario Parks Société des établissements de plein air du Québec Estonian Land Board State Hydraulic Works State Planning Organization Hong Kong Correctional Services California Department of Food and Agriculture California Department of Forestry and Fire Protection National Institute for Occupational Safety and Health Department of Environment, Water and Natural Resources United States Bureau of Reclamation National Heritage Institute Tasmania Parks and Wildlife Service Connecticut Department of Energy and Environmental Protection Defence Research and Development Canada National Institute of Water and Atmospheric Research Finnish National Board of Antiquities Commonwealth Scientific and Industrial Research Organisation Space and Upper Atmosphere Research Commission Bureau of Land Management British Waterways Fisheries and Oceans Canada Great Barrier Reef Marine Park Authority Queensland Health Centre for Environment, Fisheries and Aquaculture Science Finnish Rail Administration Australian Customs and Border Protection Service Centers for Medicare and Medicaid Services Swedish National Rail Administration Parks and Wildlife Commission of the Northern Territory Public Works Department Swedish Prison and Probation Service National Research Council National Forest Corporation Department of Parks and Wildlife Ministry of War Transport London Passenger Transport Board
107
action count
action approx
action union
action find_reverse_tuple_counts
relation operator
type authority organ
type aerodrome
action find_reverse_tuple_counts
relation operator
type authority organ
type sports venue
value 3
[[{'concept': 'aerodrome'}, {'concept': 'sports venue'}], 'operator', {'concept': 'authority organ'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?r WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:aerodrome ) ( ontology:sports_venue ) } } GROUP BY ?r } . FILTER ( ?w = 3 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q207639 Q597
P190
Q56061
USER
Which administrative territories are twin towns of Lisbon or Chichester ?
OR((Q597,P190,c(Q56061)), (Q207639,P190,c(Q56061)))
action filter_type
action union
action find
entity Q597
relation P190
action find
entity Q207639
relation P190
type Q56061
{'OR': [['Q597', 'P190', {'concept': 'Q56061'}], ['Q207639', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?s ) { ( resource:Q597 ) ( resource:Q207639 ) } . ?s property:P190 ?t } . ?t rdf:type ontology:Q56061 }
Chichester Lisbon
action filter_type
action union
action find
entity Lisbon
relation sister city
action find
entity Chichester
relation sister city
type administrative territorial entity
{'OR': [['Lisbon', 'sister city', {'concept': 'administrative territorial entity'}], ['Chichester', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?s ) { ( resource:Lisbon ) ( resource:Chichester ) } . ?s property:sister_city ?t } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q13367 Q1524 Q1335 Q42800 Q3856 Q3551 Q3889 Q61089 Q34820 Q62
SYSTEM
Some of them are Forlì, Athens, Montevideo, Belo Horizonte, Nicosia, Rabat, Maputo, Malacca City, Santo Domingo, San Francisco
Q641 Q117040 Q3551 Q3889 Q61089 Q3856 Q34820 Q1524 Q42800 Q1781 Q1489 Q1002807 Q3739 Q3932 Q3897 Q9310 Q174 Q13364 Q13367 Q8678 Q2807 Q1335 Q5776 Q62
OR((Q597,P190,c(Q56061)), (Q207639,P190,c(Q56061)))
action filter_type
action union
action find
entity Q597
relation P190
action find
entity Q207639
relation P190
type Q56061
[ANSWERS] are twin towns of Lisbon or Chichester
{'OR': [['Q597', 'P190', {'concept': 'Q56061'}], ['Q207639', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?s ) { ( resource:Q597 ) ( resource:Q207639 ) } . ?s property:P190 ?t } . ?t rdf:type ontology:Q56061 }
Venice Santiago de Cuba Rabat Maputo Malacca City Nicosia Santo Domingo Athens Belo Horizonte Budapest Mexico City Cacheu Bissau São Tomé Luanda Dili São Paulo Ravenna Forlì Rio de Janeiro Madrid Montevideo Bethlehem San Francisco
Forlì, Athens, Montevideo, Belo Horizonte, Nicosia, Rabat, Maputo, Malacca City, Santo Domingo and San Francisco are twin towns of Lisbon or Chichester
Forlì Athens Montevideo Belo Horizonte Nicosia Rabat Maputo Malacca City Santo Domingo San Francisco
action filter_type
action union
action find
entity Lisbon
relation sister city
action find
entity Chichester
relation sister city
type administrative territorial entity
{'OR': [['Lisbon', 'sister city', {'concept': 'administrative territorial entity'}], ['Chichester', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?s ) { ( resource:Lisbon ) ( resource:Chichester ) } . ?s property:sister_city ?t } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q27516394
P1427
Q1048835 Q13220204 Q22348500
USER
Which cycling race classes have greater number of political territories and administrative country subdivisions as the start location than 2016 Open de Suède Vårgårda TTT ?
(c(Q22348500),P1427,c(Q1048835)|c(Q13220204))
action greater
action union
action find_tuple_counts
relation P1427
type Q22348500
type Q1048835
action find_tuple_counts
relation P1427
type Q22348500
type Q13220204
action count
action filter_multi_types
action find
entity Q27516394
relation P1427
type Q1048835
type Q13220204
[{'concept': 'Q22348500'}, 'P1427', [{'concept': 'Q1048835'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?r WHERE { FILTER ( ?y > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:Q27516394 property:P1427 ?l . { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } . ?l rdf:type ?c } } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) ?r WHERE { { ?r property:P1427 ?f . ?r rdf:type ontology:Q22348500 . ?f rdf:type ontology:Q13220204 } UNION { ?r property:P1427 ?f . ?r rdf:type ontology:Q22348500 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?r } }
2016 Open de Suède Vårgårda TTT
action greater
action union
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type political territorial entity
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type second-level administrative country subdivision
action count
action filter_multi_types
action find
entity 2016 Open de Suède Vårgårda TTT
relation start point
type political territorial entity
type second-level administrative country subdivision
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', [{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?r WHERE { FILTER ( ?y > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:2016_Open_de_Suède_Vårgårda_TTT property:start_point ?l . { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?l rdf:type ?c } } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) ?r WHERE { { ?r property:start_point ?f . ?r rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?f rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?r property:start_point ?f . ?r rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?r } }
[]
political territorial entity second-level administrative country subdivision cycling race class defined by the International Cycling Union
Q22570383 Q22570015 Q21027926
SYSTEM
2016 Trofeo Felanitx-Ses Salines-Campos-Porreres, 2016 Volta a la Comunitat Valenciana, 2016 Tour des Fjords
Q20648638 Q20804559 Q21079232 Q22670388 Q20645272 Q20031490 Q20747413 Q4611178 Q22570015 Q22583109 Q19901808 Q22582912 Q20084073 Q22806707 Q23292729 Q20651104 Q16274906 Q11958583 Q21609216 Q23979088 Q21867749 Q22920552 Q26208382 Q20070265 Q16154976 Q4608600 Q27681327 Q21027926 Q20740354 Q20087598 Q27481015 Q16154140 Q20640438 Q17988769 Q17010500 Q16466706 Q20025032 Q16980475 Q24265096 Q20754617 Q19204232 Q21869773 Q23015479 Q23793832 Q22570383 Q21855698
(c(Q22348500),P1427,c(Q1048835)|c(Q13220204))
action greater
action union
action find_tuple_counts
relation P1427
type Q22348500
type Q1048835
action find_tuple_counts
relation P1427
type Q22348500
type Q13220204
action count
action filter_multi_types
action find
entity Q27516394
relation P1427
type Q1048835
type Q13220204
[ANSWERS] have greater number of political territories and administrative country subdivisions as the start location than 2016 Open de Suède Vårgårda TTT
[{'concept': 'Q22348500'}, 'P1427', [{'concept': 'Q1048835'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?r WHERE { FILTER ( ?y > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:Q27516394 property:P1427 ?l . { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } . ?l rdf:type ?c } } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) ?r WHERE { { ?r property:P1427 ?f . ?r rdf:type ontology:Q22348500 . ?f rdf:type ontology:Q13220204 } UNION { ?r property:P1427 ?f . ?r rdf:type ontology:Q22348500 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?r } }
2015 Ronde van Drenthe World Cup 2016 Eneco Tour 2015 Grand Prix of Aargau Canton 2016 La Méditerranéenne 2016 Arctic Race of Norway 2016 Vuelta a Castilla y León 2015 Vuelta a Burgos 2008 Holland Ladies Tour 2016 Volta a la Comunitat Valenciana 2016 Trofeo Serra de Tramuntana 2015 Energiewacht Tour 2016 Trofeo Pollenca-Port de Andratx 2016 ZLM Tour 2016 Vuelta a Andalucía 2016 Tour of the Basque Country 2016 Ronde van Drenthe 2014 Ronde van Drenthe World Cup 2013 Arctic Race of Norway 2016 Vuelta a Burgos 2016 Klasika Primavera 2016 Vuelta a Murcia 2016 Volta a Catalunya 2016 Ronde van Noord-Holland 2016 Tour of Croatia 2012 Emakumeen Euskal Bira 2007 Holland Ladies Tour UCI World Cup Finale Embrach 1999 2016 Tour des Fjords 2016 Volta a Portugal 2016 Tour de Suisse 2017 Ronde van Drenthe 2013 Emakumeen Euskal Bira 2016 Volta ao Algarve 2014 Ladies Tour of Norway 2013 Ronde van Drenthe World Cup 2014 Energiewacht Tour 2016 Giro d'Italia 2014 Emakumeen Euskal Bira 2016 Volta ao Alentejo 2016 Vuelta a Colombia 2015 Volta ao Algarve 2016 Clásica de Almería 2016 Ronde van Drenthe World Cup 2016 GP Liberty Seguros 2016 Trofeo Felanitx-Ses Salines-Campos-Porreres 2015 Grand Prix of ISD
2016 Trofeo Felanitx-Ses Salines-Campos-Porreres, 2016 Volta a la Comunitat Valenciana and 2016 Tour des Fjords have greater number of political territories and administrative country subdivisions as the start location than 2016 Open de Suède Vårgårda TTT
2016 Trofeo Felanitx-Ses Salines-Campos-Porreres 2016 Volta a la Comunitat Valenciana 2016 Tour des Fjords
action greater
action union
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type political territorial entity
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type second-level administrative country subdivision
action count
action filter_multi_types
action find
entity 2016 Open de Suède Vårgårda TTT
relation start point
type political territorial entity
type second-level administrative country subdivision
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', [{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?r WHERE { FILTER ( ?y > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:2016_Open_de_Suède_Vårgårda_TTT property:start_point ?l . { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?l rdf:type ?c } } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) ?r WHERE { { ?r property:start_point ?f . ?r rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?f rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?r property:start_point ?f . ?r rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q16673673
P1427
Q1048835 Q13220204 Q22348500
USER
And what about 2014 La Route de France?
(c(Q22348500),P1427,c(Q1048835)|c(Q13220204))
action greater
action union
action find_tuple_counts
relation P1427
type Q22348500
type Q1048835
action find_tuple_counts
relation P1427
type Q22348500
type Q13220204
action count
action filter_multi_types
action find
entity Q16673673
relation P1427
type Q1048835
type Q13220204
[{'concept': 'Q22348500'}, 'P1427', [{'concept': 'Q1048835'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q16673673 property:P1427 ?y . { VALUES ( ?k ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } . ?y rdf:type ?k } } } . FILTER ( ?v > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?h WHERE { ?o rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?h } }
2014 La Route de France
action greater
action union
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type political territorial entity
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type second-level administrative country subdivision
action count
action filter_multi_types
action find
entity 2014 La Route de France
relation start point
type political territorial entity
type second-level administrative country subdivision
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', [{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:2014_La_Route_de_France property:start_point ?y . { VALUES ( ?k ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?y rdf:type ?k } } } . FILTER ( ?v > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?h WHERE { ?o rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?h } }
[]
political territorial entity second-level administrative country subdivision cycling race class defined by the International Cycling Union
Q22570383 Q22570015 Q21027926
SYSTEM
2016 Trofeo Felanitx-Ses Salines-Campos-Porreres, 2016 Volta a la Comunitat Valenciana, 2016 Tour des Fjords
Q20648638 Q20804559 Q21079232 Q22670388 Q20645272 Q20031490 Q20747413 Q4611178 Q22570015 Q22583109 Q19901808 Q22582912 Q20084073 Q22806707 Q23292729 Q20651104 Q16274906 Q11958583 Q21609216 Q23979088 Q21867749 Q22920552 Q26208382 Q20070265 Q16154976 Q4608600 Q27681327 Q21027926 Q20740354 Q20087598 Q27481015 Q16154140 Q20640438 Q17988769 Q17010500 Q16466706 Q20025032 Q16980475 Q24265096 Q20754617 Q19204232 Q21869773 Q23015479 Q23793832 Q22570383 Q21855698
(c(Q22348500),P1427,c(Q1048835)|c(Q13220204))
action greater
action union
action find_tuple_counts
relation P1427
type Q22348500
type Q1048835
action find_tuple_counts
relation P1427
type Q22348500
type Q13220204
action count
action filter_multi_types
action find
entity Q16673673
relation P1427
type Q1048835
type Q13220204
[ANSWERS]
[{'concept': 'Q22348500'}, 'P1427', [{'concept': 'Q1048835'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q16673673 property:P1427 ?y . { VALUES ( ?k ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } . ?y rdf:type ?k } } } . FILTER ( ?v > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?h WHERE { ?o rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?h } }
2015 Ronde van Drenthe World Cup 2016 Eneco Tour 2015 Grand Prix of Aargau Canton 2016 La Méditerranéenne 2016 Arctic Race of Norway 2016 Vuelta a Castilla y León 2015 Vuelta a Burgos 2008 Holland Ladies Tour 2016 Volta a la Comunitat Valenciana 2016 Trofeo Serra de Tramuntana 2015 Energiewacht Tour 2016 Trofeo Pollenca-Port de Andratx 2016 ZLM Tour 2016 Vuelta a Andalucía 2016 Tour of the Basque Country 2016 Ronde van Drenthe 2014 Ronde van Drenthe World Cup 2013 Arctic Race of Norway 2016 Vuelta a Burgos 2016 Klasika Primavera 2016 Vuelta a Murcia 2016 Volta a Catalunya 2016 Ronde van Noord-Holland 2016 Tour of Croatia 2012 Emakumeen Euskal Bira 2007 Holland Ladies Tour UCI World Cup Finale Embrach 1999 2016 Tour des Fjords 2016 Volta a Portugal 2016 Tour de Suisse 2017 Ronde van Drenthe 2013 Emakumeen Euskal Bira 2016 Volta ao Algarve 2014 Ladies Tour of Norway 2013 Ronde van Drenthe World Cup 2014 Energiewacht Tour 2016 Giro d'Italia 2014 Emakumeen Euskal Bira 2016 Volta ao Alentejo 2016 Vuelta a Colombia 2015 Volta ao Algarve 2016 Clásica de Almería 2016 Ronde van Drenthe World Cup 2016 GP Liberty Seguros 2016 Trofeo Felanitx-Ses Salines-Campos-Porreres 2015 Grand Prix of ISD
2016 Trofeo Felanitx-Ses Salines-Campos-Porreres 2016 Volta a la Comunitat Valenciana 2016 Tour des Fjords
action greater
action union
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type political territorial entity
action find_tuple_counts
relation start point
type cycling race class defined by the International Cycling Union
type second-level administrative country subdivision
action count
action filter_multi_types
action find
entity 2014 La Route de France
relation start point
type political territorial entity
type second-level administrative country subdivision
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', [{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:2014_La_Route_de_France property:start_point ?y . { VALUES ( ?k ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?y rdf:type ?k } } } . FILTER ( ?v > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?h WHERE { ?o rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?h } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q21027926
P361
Q31629
USER
Which types of sport are a portion of that cycling race class ?
(c(Q31629),P361,Q21027926)
action filter_type
action find_reverse
entity Q21027926
relation P361
type Q31629
[{'concept': 'Q31629'}, 'P361', 'Q21027926']
SELECT DISTINCT ?c WHERE { ?c property:P361 resource:Q21027926 . ?c rdf:type ontology:Q31629 }
2016 Tour des Fjords
action filter_type
action find_reverse
entity 2016 Tour des Fjords
relation part of
type type of sport
[{'concept': 'type of sport'}, 'part of', '2016 Tour des Fjords']
SELECT DISTINCT ?c WHERE { ?c property:part_of resource:2016_Tour_des_Fjords . ?c rdf:type ontology:type_of_sport }
[]
type of sport
Clarification for simple ques.
Q22570383
SYSTEM
Did you mean 2016 Trofeo Felanitx-Ses Salines-Campos-Porreres ?
Q22570383 Q22570015 Q21027926
(c(Q31629),P361,Q22570383) (c(Q31629),P361,Q22570015) (c(Q31629),P361,Q21027926)
[ANSWER]
[{'concept': 'Q31629'}, 'P361', 'Q22570383'] [{'concept': 'Q31629'}, 'P361', 'Q22570015'] [{'concept': 'Q31629'}, 'P361', 'Q21027926']
SELECT DISTINCT ?c WHERE { ?c property:P361 resource:Q21027926 . ?c rdf:type ontology:Q31629 }
2016 Trofeo Felanitx-Ses Salines-Campos-Porreres 2016 Volta a la Comunitat Valenciana 2016 Tour des Fjords
Did you mean 2016 Trofeo Felanitx-Ses Salines-Campos-Porreres ?
2016 Trofeo Felanitx-Ses Salines-Campos-Porreres
[{'concept': 'type of sport'}, 'part of', '2016 Trofeo Felanitx-Ses Salines-Campos-Porreres'] [{'concept': 'type of sport'}, 'part of', '2016 Volta a la Comunitat Valenciana'] [{'concept': 'type of sport'}, 'part of', '2016 Tour des Fjords']
SELECT DISTINCT ?c WHERE { ?c property:part_of resource:2016_Tour_des_Fjords . ?c rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
USER
No, I meant 2016 Tour des Fjords. Could you tell me the answer for that?
(c(Q31629),P361,Q21027926)
Q21027926
[{'concept': 'Q31629'}, 'P361', 'Q21027926']
[{'concept': 'type of sport'}, 'part of', '2016 Tour des Fjords']
[]
Q26722636 Q26722635 Q26722638
SYSTEM
2016 Tour des Fjords, Stage 2, 2016 Tour des Fjords, Stage 1, 2016 Tour des Fjords, Stage 3
Q26722636 Q26722635 Q26722638 Q26722641 Q26722640
(c(Q31629),P361,Q21027926)
action filter_type
action find_reverse
entity Q21027926
relation P361
type Q31629
[ANSWERS]
[{'concept': 'Q31629'}, 'P361', 'Q21027926']
SELECT DISTINCT ?c WHERE { ?c property:P361 resource:Q21027926 . ?c rdf:type ontology:Q31629 }
2016 Tour des Fjords, Stage 2 2016 Tour des Fjords, Stage 1 2016 Tour des Fjords, Stage 3 2016 Tour des Fjords, Stage 5 2016 Tour des Fjords, Stage 4
2016 Tour des Fjords, Stage 2, 2016 Tour des Fjords, Stage 1 and 2016 Tour des Fjords, Stage 3 are a portion of that cycling race class
2016 Tour des Fjords, Stage 2 2016 Tour des Fjords, Stage 1 2016 Tour des Fjords, Stage 3
action filter_type
action find_reverse
entity 2016 Tour des Fjords
relation part of
type type of sport
[{'concept': 'type of sport'}, 'part of', '2016 Tour des Fjords']
SELECT DISTINCT ?c WHERE { ?c property:part_of resource:2016_Tour_des_Fjords . ?c rdf:type ontology:type_of_sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q7588179
P180
Q56061 Q3305213 Q838948
USER
How many administrative territories are depicted in more number of paintings or works of art than St. George, Conwy ?
(c(Q3305213)|c(Q838948),P180,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q7588179
relation P180
type Q3305213
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?t WHERE { { ?g property:P180 ?t . ?t rdf:type ontology:Q56061 . ?g rdf:type ontology:Q3305213 } UNION { ?t rdf:type ontology:Q56061 . ?g rdf:type ontology:Q838948 . ?g property:P180 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:P180 resource:Q7588179 . { { ?u rdf:type ontology:Q3305213 } UNION { ?u rdf:type ontology:Q838948 } } } } . FILTER ( ?z > ?b ) }
St. George, Conwy
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity St. George, Conwy
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?t WHERE { { ?g property:depicts ?t . ?t rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:painting } UNION { ?t rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:work_of_art . ?g property:depicts ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:depicts resource:St._George,_Conwy . { { ?u rdf:type ontology:painting } UNION { ?u rdf:type ontology:work_of_art } } } } . FILTER ( ?z > ?b ) }
[]
administrative territorial entity painting work of art
SYSTEM
35
Q33959 Q15682 Q329967 Q62289 Q178835 Q12892 Q1247496 Q174054 Q1524 Q3561 Q139564 Q1012797 Q515 Q3834 Q748777 Q1563 Q372324 Q85 Q2100774 Q4914513 Q1479 Q101254 Q220 Q340 Q634054 Q49146 Q165887 Q54264 Q8717 Q641 Q180141 Q12191 Q6441 Q90 Q36600
(c(Q3305213)|c(Q838948),P180,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q7588179
relation P180
type Q3305213
type Q838948
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?t WHERE { { ?g property:P180 ?t . ?t rdf:type ontology:Q56061 . ?g rdf:type ontology:Q3305213 } UNION { ?t rdf:type ontology:Q56061 . ?g rdf:type ontology:Q838948 . ?g property:P180 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:P180 resource:Q7588179 . { { ?u rdf:type ontology:Q3305213 } UNION { ?u rdf:type ontology:Q838948 } } } } . FILTER ( ?z > ?b ) }
Nice Cádiz Paestum Rockaway Beach Baalbek Antwerp Rievaulx Abbey Isola Bella Athens Algiers Atlantic City Ostia Antica city Konstanz Tintagel Havana Dawson City Cairo Point Judith, Rhode Island Binsey, Oxfordshire Bordeaux Newport Rome Montreal Conwy New London Emmaus Newport Seville Venice Sodom and Gomorrah Nantes Montpellier Paris The Hague
35
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity St. George, Conwy
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?t WHERE { { ?g property:depicts ?t . ?t rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:painting } UNION { ?t rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:work_of_art . ?g property:depicts ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:depicts resource:St._George,_Conwy . { { ?u rdf:type ontology:painting } UNION { ?u rdf:type ontology:work_of_art } } } } . FILTER ( ?z > ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q62
P180
Q56061 Q3305213 Q838948
USER
And also tell me about San Francisco?
(c(Q3305213)|c(Q838948),P180,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q62
relation P180
type Q3305213
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:P180 ?o . ?o rdf:type ontology:Q56061 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P180 ?o . ?o rdf:type ontology:Q56061 . ?v rdf:type ontology:Q3305213 } } GROUP BY ?o } . FILTER ( ?b > ?y ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P180 resource:Q62 . { { ?n rdf:type ontology:Q3305213 } UNION { ?n rdf:type ontology:Q838948 } } } } }
San Francisco
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity San Francisco
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:depicts ?o . ?o rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:work_of_art } UNION { ?v property:depicts ?o . ?o rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:painting } } GROUP BY ?o } . FILTER ( ?b > ?y ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:depicts resource:San_Francisco . { { ?n rdf:type ontology:painting } UNION { ?n rdf:type ontology:work_of_art } } } } }
[]
administrative territorial entity painting work of art
SYSTEM
35
Q33959 Q15682 Q329967 Q62289 Q178835 Q12892 Q1247496 Q174054 Q1524 Q3561 Q139564 Q1012797 Q515 Q3834 Q748777 Q1563 Q372324 Q85 Q2100774 Q4914513 Q1479 Q101254 Q220 Q340 Q634054 Q49146 Q165887 Q54264 Q8717 Q641 Q180141 Q12191 Q6441 Q90 Q36600
(c(Q3305213)|c(Q838948),P180,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q62
relation P180
type Q3305213
type Q838948
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:P180 ?o . ?o rdf:type ontology:Q56061 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P180 ?o . ?o rdf:type ontology:Q56061 . ?v rdf:type ontology:Q3305213 } } GROUP BY ?o } . FILTER ( ?b > ?y ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P180 resource:Q62 . { { ?n rdf:type ontology:Q3305213 } UNION { ?n rdf:type ontology:Q838948 } } } } }
Nice Cádiz Paestum Rockaway Beach Baalbek Antwerp Rievaulx Abbey Isola Bella Athens Algiers Atlantic City Ostia Antica city Konstanz Tintagel Havana Dawson City Cairo Point Judith, Rhode Island Binsey, Oxfordshire Bordeaux Newport Rome Montreal Conwy New London Emmaus Newport Seville Venice Sodom and Gomorrah Nantes Montpellier Paris The Hague
35
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity San Francisco
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:depicts ?o . ?o rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:work_of_art } UNION { ?v property:depicts ?o . ?o rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:painting } } GROUP BY ?o } . FILTER ( ?b > ?y ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:depicts resource:San_Francisco . { { ?n rdf:type ontology:painting } UNION { ?n rdf:type ontology:work_of_art } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q537392 Q3768641
P9 P1346
Q502895
USER
Which people were the winners of 2006 Giro d'Italia Femminile or are the siblings of Gertrud von Babenberg ?
OR((Q3768641,P1346,c(Q502895)), (Q537392,P9,c(Q502895)))
action filter_type
action union
action find
entity Q3768641
relation P1346
action find
entity Q537392
relation P9
type Q502895
{'OR': [['Q3768641', 'P1346', {'concept': 'Q502895'}], ['Q537392', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q537392 property:P9 ?x } UNION { resource:Q3768641 property:P1346 ?x } } . ?x rdf:type ontology:Q502895 }
Gertrud von Babenberg 2006 Giro d'Italia Femminile
action filter_type
action union
action find
entity 2006 Giro d'Italia Femminile
relation winner
action find
entity Gertrud von Babenberg
relation sister
type common name
{'OR': [["2006 Giro d'Italia Femminile", 'winner', {'concept': 'common name'}], ['Gertrud von Babenberg', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Gertrud_von_Babenberg property:sister ?x } UNION { resource:2006_Giro_d'Italia_Femminile property:winner ?x } } . ?x rdf:type ontology:common_name }
[]
common name
Q547754 Q19601994 Q253778 Q270797 Q448304 Q117508 Q263872
SYSTEM
Constance of Babenberg, Agnes of Babenberg, Margaret of Austria, Queen of Bohemia, Susanne Ljungskog, Nicole Brändli, Edita Pučinskaitė, Olga Slyusareva
Q547754 Q19601994 Q253778 Q270797 Q448304 Q117508 Q263872
OR((Q3768641,P1346,c(Q502895)), (Q537392,P9,c(Q502895)))
action filter_type
action union
action find
entity Q3768641
relation P1346
action find
entity Q537392
relation P9
type Q502895
[ANSWERS] were the winners of 2006 Giro d'Italia Femminile or are the siblings of Gertrud von Babenberg
{'OR': [['Q3768641', 'P1346', {'concept': 'Q502895'}], ['Q537392', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q537392 property:P9 ?x } UNION { resource:Q3768641 property:P1346 ?x } } . ?x rdf:type ontology:Q502895 }
Constance of Babenberg Agnes of Babenberg Margaret of Austria, Queen of Bohemia Susanne Ljungskog Nicole Brändli Edita Pučinskaitė Olga Slyusareva
Constance of Babenberg, Agnes of Babenberg, Margaret of Austria, Queen of Bohemia, Susanne Ljungskog, Nicole Brändli, Edita Pučinskaitė and Olga Slyusareva were the winners of 2006 Giro d'Italia Femminile or are the siblings of Gertrud von Babenberg
Constance of Babenberg Agnes of Babenberg Margaret of Austria, Queen of Bohemia Susanne Ljungskog Nicole Brändli Edita Pučinskaitė Olga Slyusareva
action filter_type
action union
action find
entity 2006 Giro d'Italia Femminile
relation winner
action find
entity Gertrud von Babenberg
relation sister
type common name
{'OR': [["2006 Giro d'Italia Femminile", 'winner', {'concept': 'common name'}], ['Gertrud von Babenberg', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Gertrud_von_Babenberg property:sister ?x } UNION { resource:2006_Giro_d'Italia_Femminile property:winner ?x } } . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q27302711 Q597
P19 P190
Q56061
USER
Which administrative territories are partner towns of Lisbon or were Goretti Ramírez Castro born ?
OR((Q597,P190,c(Q56061)), (Q27302711,P19,c(Q56061)))
action filter_type
action union
action find
entity Q597
relation P190
action find
entity Q27302711
relation P19
type Q56061
{'OR': [['Q597', 'P190', {'concept': 'Q56061'}], ['Q27302711', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q597 property:P190 ?t } UNION { resource:Q27302711 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Goretti Ramírez Castro Lisbon
action filter_type
action union
action find
entity Lisbon
relation sister city
action find
entity Goretti Ramírez Castro
relation place of birth
type administrative territorial entity
{'OR': [['Lisbon', 'sister city', {'concept': 'administrative territorial entity'}], ['Goretti Ramírez Castro', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Lisbon property:sister_city ?t } UNION { resource:Goretti_Ramírez_Castro property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3739 Q3897 Q1489 Q61089 Q3551 Q1781 Q62 Q174 Q8678 Q9310
SYSTEM
Some of them are Bissau, Luanda, Mexico City, Malacca City, Rabat, Budapest, San Francisco, São Paulo, Rio de Janeiro, Dili
Q641 Q117040 Q3551 Q3889 Q61089 Q3856 Q14328 Q34820 Q1524 Q42800 Q1781 Q1489 Q1002807 Q3739 Q3932 Q3897 Q9310 Q174 Q8678 Q2807 Q1335 Q5776 Q62
OR((Q597,P190,c(Q56061)), (Q27302711,P19,c(Q56061)))
action filter_type
action union
action find
entity Q597
relation P190
action find
entity Q27302711
relation P19
type Q56061
[ANSWERS] are partner towns of Lisbon or were Goretti Ramírez Castro born
{'OR': [['Q597', 'P190', {'concept': 'Q56061'}], ['Q27302711', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q597 property:P190 ?t } UNION { resource:Q27302711 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Venice Santiago de Cuba Rabat Maputo Malacca City Nicosia Santa Cruz de Tenerife Santo Domingo Athens Belo Horizonte Budapest Mexico City Cacheu Bissau São Tomé Luanda Dili São Paulo Rio de Janeiro Madrid Montevideo Bethlehem San Francisco
Bissau, Luanda, Mexico City, Malacca City, Rabat, Budapest, San Francisco, São Paulo, Rio de Janeiro and Dili are partner towns of Lisbon or were Goretti Ramírez Castro born
Bissau Luanda Mexico City Malacca City Rabat Budapest San Francisco São Paulo Rio de Janeiro Dili
action filter_type
action union
action find
entity Lisbon
relation sister city
action find
entity Goretti Ramírez Castro
relation place of birth
type administrative territorial entity
{'OR': [['Lisbon', 'sister city', {'concept': 'administrative territorial entity'}], ['Goretti Ramírez Castro', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Lisbon property:sister_city ?t } UNION { resource:Goretti_Ramírez_Castro property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]