Simple Question (Direct)
Simple Question
Q188335
P462
Q1075
USER
Which color is Rebound associated with ?
(Q188335,P462,c(Q1075))
action filter_type
action find
entity Q188335
relation P462
type Q1075
['Q188335', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?w WHERE { resource:Q188335 property:P462 ?w . ?w rdf:type ontology:Q1075 }
Rebound
action filter_type
action find
entity Rebound
relation color
type color
['Rebound', 'color', {'concept': 'color'}]
SELECT DISTINCT ?w WHERE { resource:Rebound property:color ?w . ?w rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q188335,P462,c(Q1075))
action filter_type
action find
entity Q188335
relation P462
type Q1075
Rebound is associated with [ANSWER]
['Q188335', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?w WHERE { resource:Q188335 property:P462 ?w . ?w rdf:type ontology:Q1075 }
color
Rebound is associated with color
color
action filter_type
action find
entity Rebound
relation color
type color
['Rebound', 'color', {'concept': 'color'}]
SELECT DISTINCT ?w WHERE { resource:Rebound property:color ?w . ?w rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q188335
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q22006653,P364,c(Q34770))
action filter_type
action find
entity Q188335
relation P364
type Q34770
['Q22006653', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q188335 property:P364 ?a . ?a rdf:type ontology:Q34770 }
Rebound
action filter_type
action find
entity Rebound
relation original language of work
type language
['color', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Rebound property:original_language_of_work ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q22006653,P364,c(Q34770))
action filter_type
action find
entity Q188335
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q22006653', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q188335 property:P364 ?a . ?a rdf:type ontology:Q34770 }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity Rebound
relation original language of work
type language
['color', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Rebound property:original_language_of_work ?a . ?a rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q193619
P37
Q34770 Q1048835
USER
Which political territories designates greater number of languages as their official language than Union of South Africa ?
(c(Q1048835),P37,c(Q34770))
action greater
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q193619
relation P37
type Q1048835
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:Q1048835 . resource:Q193619 property:P37 ?h } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?j ) WHERE { ?f property:P37 ?i . ?f rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q34770 } GROUP BY ?f } }
Union of South Africa
action greater
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Union of South Africa
relation official language
type political territorial entity
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Union_of_South_Africa property:official_language ?h } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?j ) WHERE { ?f property:official_language ?i . ?f rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:language } GROUP BY ?f } }
[]
language political territorial entity
Q408 Q16 Q5705
SYSTEM
Australia, Canada, Catalonia
Q127167 Q193714 Q691 Q686790 Q785 Q769 Q763 Q917883 Q35086 Q766 Q9676 Q1054923 Q52626 Q5720 Q664 Q13353 Q37362 Q1771153 Q5705 Q13786 Q16 Q5785 Q624511 Q15601 Q1628531 Q649612 Q757 Q685 Q778 Q25228 Q4474 Q408 Q1631311 Q1444150 Q9648 Q643919 Q1644430 Q23635 Q781 Q1907203 Q1769772
(c(Q1048835),P37,c(Q34770))
action greater
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q193619
relation P37
type Q1048835
[ANSWERS] designate greater number of languages as their official language than Union of South Africa
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:Q1048835 . resource:Q193619 property:P37 ?h } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?j ) WHERE { ?f property:P37 ?i . ?f rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q34770 } GROUP BY ?f } }
Western Cape Mandatory Palestine Papua New Guinea Mediona Jersey Grenada Saint Kitts and Nevis Molina de Segura South Georgia and the South Sandwich Islands Jamaica Isle of Man British Hong Kong Formentera Valencian Country New Zealand Montserrat Akrotiri and Dhekelia Albuixech Catalonia Cebu Canada Cayman Islands Aracena Corbera de Llobregat Quintanar de la Orden Coca, Segovia Saint Vincent and the Grenadines Solomon Islands The Bahamas Anguilla Ortuella Australia Cuéllar Alboloduy Falkland Islands Torfaen County Borough Monreal del Campo Bermuda Antigua and Barbuda San Miguel del Arroyo Bierge
Australia, Canada and Catalonia designate greater number of languages as their official language than Union of South Africa
Australia Canada Catalonia
action greater
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Union of South Africa
relation official language
type political territorial entity
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Union_of_South_Africa property:official_language ?h } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?j ) WHERE { ?f property:official_language ?i . ?f rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:language } GROUP BY ?f } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q789334
P37
Q34770 Q1048835
USER
And also tell me about Balažer?
(c(Q1048835),P37,c(Q34770))
action greater
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q789334
relation P37
type Q1048835
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Q789334 property:P37 ?g . ?g rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?a ) WHERE { ?c rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q34770 . ?c property:P37 ?j } GROUP BY ?c } }
Balažer
action greater
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Balažer
relation official language
type political territorial entity
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Balažer property:official_language ?g . ?g rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?a ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:language . ?c property:official_language ?j } GROUP BY ?c } }
[]
language political territorial entity
Q408 Q16 Q5705
SYSTEM
Australia, Canada, Catalonia
Q127167 Q193714 Q691 Q686790 Q785 Q769 Q763 Q917883 Q35086 Q766 Q9676 Q1054923 Q52626 Q5720 Q664 Q13353 Q37362 Q1771153 Q5705 Q13786 Q16 Q5785 Q624511 Q15601 Q1628531 Q649612 Q757 Q685 Q778 Q25228 Q4474 Q408 Q1631311 Q1444150 Q9648 Q643919 Q1644430 Q23635 Q781 Q1907203 Q1769772
(c(Q1048835),P37,c(Q34770))
action greater
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q789334
relation P37
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Q789334 property:P37 ?g . ?g rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?a ) WHERE { ?c rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q34770 . ?c property:P37 ?j } GROUP BY ?c } }
Western Cape Mandatory Palestine Papua New Guinea Mediona Jersey Grenada Saint Kitts and Nevis Molina de Segura South Georgia and the South Sandwich Islands Jamaica Isle of Man British Hong Kong Formentera Valencian Country New Zealand Montserrat Akrotiri and Dhekelia Albuixech Catalonia Cebu Canada Cayman Islands Aracena Corbera de Llobregat Quintanar de la Orden Coca, Segovia Saint Vincent and the Grenadines Solomon Islands The Bahamas Anguilla Ortuella Australia Cuéllar Alboloduy Falkland Islands Torfaen County Borough Monreal del Campo Bermuda Antigua and Barbuda San Miguel del Arroyo Bierge
Australia Canada Catalonia
action greater
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Balažer
relation official language
type political territorial entity
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Balažer property:official_language ?g . ?g rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?a ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:language . ?c property:official_language ?j } GROUP BY ?c } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q408 Q16 Q5705
P47
Q15617994
USER
Who share the border with those political territories ?
(Q408,P47,c(Q15617994)) (Q16,P47,c(Q15617994)) (Q5705,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q408', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q5705', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?i property:P47 ?b . ?b rdf:type ontology:Q15617994 . VALUES ( ?i ) { ( resource:Q127167 ) ( resource:Q193714 ) ( resource:Q691 ) } }
Australia Canada Catalonia
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Australia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Catalonia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?i property:shares_border_with ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?i ) { ( resource:Western_Cape ) ( resource:Mandatory_Palestine ) ( resource:Papua_New_Guinea ) } }
[]
designation for an administrative territorial entity
Q30 Q142 Q252
SYSTEM
United States of America, France, Indonesia
Q252 Q1979 Q223 Q30 Q142 Q12538 Q12709 Q228
(Q408,P47,c(Q15617994)) (Q16,P47,c(Q15617994)) (Q5705,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS] share the border with those political territories
['Q408', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q5705', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?i property:P47 ?b . ?b rdf:type ontology:Q15617994 . VALUES ( ?i ) { ( resource:Q127167 ) ( resource:Q193714 ) ( resource:Q691 ) } }
Indonesia Prince Edward Island Greenland United States of America France Haute-Garonne Pyrénées-Orientales Andorra
United States of America, France and Indonesia share the border with those political territories
United States of America France Indonesia
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Australia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Catalonia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?i property:shares_border_with ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?i ) { ( resource:Western_Cape ) ( resource:Mandatory_Palestine ) ( resource:Papua_New_Guinea ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q30 Q142 Q252
P463
Q43229
USER
Which organizations were those administrative territories a member of ?
(Q30,P463,c(Q43229)) (Q142,P463,c(Q43229)) (Q252,P463,c(Q43229))
action filter_type
action find
entity prev_answer
relation P463
type Q43229
['Q30', 'P463', {'concept': 'Q43229'}] ['Q142', 'P463', {'concept': 'Q43229'}] ['Q252', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q43229 . ?a property:P463 ?c . VALUES ( ?a ) { ( resource:Q252 ) ( resource:Q1979 ) ( resource:Q223 ) } }
United States of America France Indonesia
action filter_type
action find
entity prev_answer
relation member of
type organization
['United States of America', 'member of', {'concept': 'organization'}] ['France', 'member of', {'concept': 'organization'}] ['Indonesia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:organization . ?a property:member_of ?c . VALUES ( ?a ) { ( resource:Indonesia ) ( resource:Prince_Edward_Island ) ( resource:Greenland ) } }
[]
organization
Q42944 Q151991 Q7825
SYSTEM
European Organization for Nuclear Research, European Southern Observatory, World Trade Organization
Q340195 Q191384 Q899770 Q41550 Q656801 Q170481 Q7825 Q827525 Q340195 Q191384 Q41550 Q899770 Q42944 Q1331152 Q656801 Q151991 Q161549 Q7825 Q827525 Q191384 Q899770 Q656801 Q7825 Q170481 Q827525
(Q30,P463,c(Q43229)) (Q142,P463,c(Q43229)) (Q252,P463,c(Q43229))
action filter_type
action find
entity prev_answer
relation P463
type Q43229
[ANSWERS] were those administrative territories a member of
['Q30', 'P463', {'concept': 'Q43229'}] ['Q142', 'P463', {'concept': 'Q43229'}] ['Q252', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q43229 . ?a property:P463 ?c . VALUES ( ?a ) { ( resource:Q252 ) ( resource:Q1979 ) ( resource:Q223 ) } }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation Asia-Pacific Economic Cooperation World Trade Organization International Development Association African Development Bank International Bank for Reconstruction and Development Organisation for Economic Co-operation and Development International Centre for Settlement of Investment Disputes European Organization for Nuclear Research Open Government Partnership International Finance Corporation European Southern Observatory European Coal and Steel Community World Trade Organization International Development Association International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation World Trade Organization Asia-Pacific Economic Cooperation International Development Association
European Organization for Nuclear Research, European Southern Observatory and World Trade Organization were those administrative territories a member of
European Organization for Nuclear Research European Southern Observatory World Trade Organization
action filter_type
action find
entity prev_answer
relation member of
type organization
['United States of America', 'member of', {'concept': 'organization'}] ['France', 'member of', {'concept': 'organization'}] ['Indonesia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:organization . ?a property:member_of ?c . VALUES ( ?a ) { ( resource:Indonesia ) ( resource:Prince_Edward_Island ) ( resource:Greenland ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P1001
Q2712963
USER
Which abstract noun has jurisdiction over Australia ?
(c(Q2712963),P1001,Q408)
action filter_type
action find_reverse
entity Q408
relation P1001
type Q2712963
[{'concept': 'Q2712963'}, 'P1001', 'Q408']
SELECT DISTINCT ?b WHERE { ?b property:P1001 resource:Q408 . ?b rdf:type ontology:Q2712963 }
Australia
action filter_type
action find_reverse
entity Australia
relation applies to jurisdiction
type abstract noun
[{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Australia']
SELECT DISTINCT ?b WHERE { ?b property:applies_to_jurisdiction resource:Australia . ?b rdf:type ontology:abstract_noun }
[]
abstract noun
Q7140753
SYSTEM
Partnership
Q7140753
(c(Q2712963),P1001,Q408)
action filter_type
action find_reverse
entity Q408
relation P1001
type Q2712963
[ANSWER] has jurisdiction over Australia
[{'concept': 'Q2712963'}, 'P1001', 'Q408']
SELECT DISTINCT ?b WHERE { ?b property:P1001 resource:Q408 . ?b rdf:type ontology:Q2712963 }
Partnership
Partnership has jurisdiction over Australia
Partnership
action filter_type
action find_reverse
entity Australia
relation applies to jurisdiction
type abstract noun
[{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Australia']
SELECT DISTINCT ?b WHERE { ?b property:applies_to_jurisdiction resource:Australia . ?b rdf:type ontology:abstract_noun }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1922956
P1884
Q1075 Q502895 Q95074
USER
Which colors best decribes the hair of around the same number of people or fictional characters as black hair ?
(c(Q502895)|c(Q95074),P1884,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q1922956
relation P1884
type Q502895
type Q95074
[[{'concept': 'Q502895'}, {'concept': 'Q95074'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:Q95074 ) ( ontology:Q502895 ) } . ?m rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P1884 resource:Q1922956 . { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:Q502895 ) ( ontology:Q95074 ) } } } } . FILTER ( ?o = ?j ) }
black hair
action approx
action union
action find_reverse_tuple_counts
relation hair color
type color
type common name
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action count
action filter_multi_types
action find_reverse
entity black hair
relation hair color
type common name
type fictional character
[[{'concept': 'common name'}, {'concept': 'fictional character'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:fictional_character ) ( ontology:common_name ) } . ?m rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:hair_color resource:black_hair . { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:common_name ) ( ontology:fictional_character ) } } } } . FILTER ( ?o = ?j ) }
[]
color common name fictional character
Q2367101 Q1922956
SYSTEM
brown hair, black hair
Q2367101 Q1922956
(c(Q502895)|c(Q95074),P1884,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q1922956
relation P1884
type Q502895
type Q95074
[ANSWERS] best decribe the hair of around the same number of people or fictional characters as black hair
[[{'concept': 'Q502895'}, {'concept': 'Q95074'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:Q95074 ) ( ontology:Q502895 ) } . ?m rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P1884 resource:Q1922956 . { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:Q502895 ) ( ontology:Q95074 ) } } } } . FILTER ( ?o = ?j ) }
brown hair black hair
Brown hair and black hair best decribe the hair of around the same number of people or fictional characters as black hair
brown hair black hair
action approx
action union
action find_reverse_tuple_counts
relation hair color
type color
type common name
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action count
action filter_multi_types
action find_reverse
entity black hair
relation hair color
type common name
type fictional character
[[{'concept': 'common name'}, {'concept': 'fictional character'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:fictional_character ) ( ontology:common_name ) } . ?m rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:hair_color resource:black_hair . { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:common_name ) ( ontology:fictional_character ) } } } } . FILTER ( ?o = ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6933946
P1884
Q1075 Q502895 Q95074
USER
And what about white hair?
(c(Q502895)|c(Q95074),P1884,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q6933946
relation P1884
type Q502895
type Q95074
[[{'concept': 'Q502895'}, {'concept': 'Q95074'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?h WHERE { { ?o property:P1884 ?h . ?h rdf:type ontology:Q1075 . ?o rdf:type ontology:Q95074 } UNION { ?o property:P1884 ?h . ?o rdf:type ontology:Q502895 . ?h rdf:type ontology:Q1075 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P1884 resource:Q6933946 . { { ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q95074 } } } } . FILTER ( ?c = ?g ) }
white hair
action approx
action union
action find_reverse_tuple_counts
relation hair color
type color
type common name
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action count
action filter_multi_types
action find_reverse
entity white hair
relation hair color
type common name
type fictional character
[[{'concept': 'common name'}, {'concept': 'fictional character'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?h WHERE { { ?o property:hair_color ?h . ?h rdf:type ontology:color . ?o rdf:type ontology:fictional_character } UNION { ?o property:hair_color ?h . ?o rdf:type ontology:common_name . ?h rdf:type ontology:color } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:hair_color resource:white_hair . { { ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:fictional_character } } } } . FILTER ( ?c = ?g ) }
[]
color common name fictional character
Q27790873 Q152357 Q19916539
SYSTEM
purple, red hair, orange hair
Q3142 Q19916539 Q18661358 Q4930092 Q2419551 Q26449910 Q5094009 Q27790873 Q1088 Q152357 Q6933946
(c(Q502895)|c(Q95074),P1884,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q6933946
relation P1884
type Q502895
type Q95074
[ANSWERS]
[[{'concept': 'Q502895'}, {'concept': 'Q95074'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?h WHERE { { ?o property:P1884 ?h . ?h rdf:type ontology:Q1075 . ?o rdf:type ontology:Q95074 } UNION { ?o property:P1884 ?h . ?o rdf:type ontology:Q502895 . ?h rdf:type ontology:Q1075 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P1884 resource:Q6933946 . { { ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q95074 } } } } . FILTER ( ?c = ?g ) }
red orange hair strawberry blond hair blue hair auburn green hair chestnut hair purple blue red hair white hair
purple red hair orange hair
action approx
action union
action find_reverse_tuple_counts
relation hair color
type color
type common name
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action count
action filter_multi_types
action find_reverse
entity white hair
relation hair color
type common name
type fictional character
[[{'concept': 'common name'}, {'concept': 'fictional character'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?h WHERE { { ?o property:hair_color ?h . ?h rdf:type ontology:color . ?o rdf:type ontology:fictional_character } UNION { ?o property:hair_color ?h . ?o rdf:type ontology:common_name . ?h rdf:type ontology:color } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:hair_color resource:white_hair . { { ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:fictional_character } } } } . FILTER ( ?c = ?g ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q152357
P180
Q838948
USER
Which work of art demonstrates that color ?
(c(Q838948),P180,Q152357)
action filter_type
action find_reverse
entity Q152357
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q152357']
SELECT DISTINCT ?h WHERE { ?h property:P180 resource:Q152357 . ?h rdf:type ontology:Q838948 }
red hair
action filter_type
action find_reverse
entity red hair
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'red hair']
SELECT DISTINCT ?h WHERE { ?h property:depicts resource:red_hair . ?h rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q19916539
SYSTEM
Did you mean orange hair ?
Q27790873 Q152357 Q19916539
(c(Q838948),P180,Q27790873) (c(Q838948),P180,Q152357) (c(Q838948),P180,Q19916539)
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q27790873'] [{'concept': 'Q838948'}, 'P180', 'Q152357'] [{'concept': 'Q838948'}, 'P180', 'Q19916539']
SELECT DISTINCT ?h WHERE { ?h property:P180 resource:Q152357 . ?h rdf:type ontology:Q838948 }
purple red hair orange hair
Did you mean orange hair ?
orange hair
[{'concept': 'work of art'}, 'depicts', 'purple'] [{'concept': 'work of art'}, 'depicts', 'red hair'] [{'concept': 'work of art'}, 'depicts', 'orange hair']
SELECT DISTINCT ?h WHERE { ?h property:depicts resource:red_hair . ?h rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant red hair. Could you tell me the answer for that?
(c(Q838948),P180,Q152357)
Q152357
[{'concept': 'Q838948'}, 'P180', 'Q152357']
[{'concept': 'work of art'}, 'depicts', 'red hair']
[]
Q17023940
SYSTEM
Portrait of Dr. Gachet
Q17023940
(c(Q838948),P180,Q152357)
action filter_type
action find_reverse
entity Q152357
relation P180
type Q838948
[ANSWER] demonstrates that color
[{'concept': 'Q838948'}, 'P180', 'Q152357']
SELECT DISTINCT ?h WHERE { ?h property:P180 resource:Q152357 . ?h rdf:type ontology:Q838948 }
Portrait of Dr. Gachet
Portrait of Dr. Gachet demonstrates that color
Portrait of Dr. Gachet
action filter_type
action find_reverse
entity red hair
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'red hair']
SELECT DISTINCT ?h WHERE { ?h property:depicts resource:red_hair . ?h rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P414
Q43229 Q1269299 Q43229
USER
How many organizations are atmost 4 business organizations or organizations traded at ?
(c(Q1269299)|c(Q43229),P414,c(Q43229))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P414
type Q43229
type Q1269299
action find_reverse_tuple_counts
relation P414
type Q43229
type Q43229
value 4
[[{'concept': 'Q1269299'}, {'concept': 'Q43229'}], 'P414', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?d WHERE { { ?l property:P414 ?d . ?d rdf:type ontology:Q43229 . ?l rdf:type ontology:Q1269299 } UNION { ?l property:P414 ?d . ?d rdf:type ontology:Q43229 . ?l rdf:type ontology:Q43229 } } GROUP BY ?d } . FILTER ( ?y <= 4 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation stock exchange
type organization
type type of business entity
action find_reverse_tuple_counts
relation stock exchange
type organization
type organization
value 4
[[{'concept': 'type of business entity'}, {'concept': 'organization'}], 'stock exchange', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?d WHERE { { ?l property:stock_exchange ?d . ?d rdf:type ontology:organization . ?l rdf:type ontology:type_of_business_entity } UNION { ?l property:stock_exchange ?d . ?d rdf:type ontology:organization . ?l rdf:type ontology:organization } } GROUP BY ?d } . FILTER ( ?y <= 4 ) }
[]
organization type of business entity organization
SYSTEM
12
Q1391676 Q1661737 Q2888321 Q1973019 Q891559 Q698535 Q609159 Q1320224 Q8250595 Q13683 Q627019 Q3642744
(c(Q1269299)|c(Q43229),P414,c(Q43229))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P414
type Q43229
type Q1269299
action find_reverse_tuple_counts
relation P414
type Q43229
type Q43229
value 4
[ANSWER]
[[{'concept': 'Q1269299'}, {'concept': 'Q43229'}], 'P414', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?d WHERE { { ?l property:P414 ?d . ?d rdf:type ontology:Q43229 . ?l rdf:type ontology:Q1269299 } UNION { ?l property:P414 ?d . ?d rdf:type ontology:Q43229 . ?l rdf:type ontology:Q43229 } } GROUP BY ?d } . FILTER ( ?y <= 4 ) }
OTC Bulletin Board Indonesia Stock Exchange Cyprus Stock Exchange Dubai Financial Market Mexican Stock Exchange Wiener Börse Bolsas y Mercados Españoles Osaka Exchange Bolsa de Valores y Productos de Asunción NYSE Euronext New Zealand Exchange Stock Exchange in Milano
12
action count
action atmost
action union
action find_reverse_tuple_counts
relation stock exchange
type organization
type type of business entity
action find_reverse_tuple_counts
relation stock exchange
type organization
type organization
value 4
[[{'concept': 'type of business entity'}, {'concept': 'organization'}], 'stock exchange', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?d WHERE { { ?l property:stock_exchange ?d . ?d rdf:type ontology:organization . ?l rdf:type ontology:type_of_business_entity } UNION { ?l property:stock_exchange ?d . ?d rdf:type ontology:organization . ?l rdf:type ontology:organization } } GROUP BY ?d } . FILTER ( ?y <= 4 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q611250
P206
Q1267889 Q15324 Q1048835
USER
Which political territories are situated in the neighbourhood of approximately the same number of waterways or bodies of water as Polopos ?
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q611250
relation P206
type Q1267889
type Q15324
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1267889 . ?c property:P206 ?v } UNION { ?c property:P206 ?v . ?c rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15324 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q611250 property:P206 ?o . { { ?o rdf:type ontology:Q15324 } UNION { ?o rdf:type ontology:Q1267889 } } } } . FILTER ( ?s = ?m ) }
Polopos
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Polopos
relation located next to body of water
type waterway
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:waterway . ?c property:located_next_to_body_of_water ?v } UNION { ?c property:located_next_to_body_of_water ?v . ?c rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:body_of_water } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Polopos property:located_next_to_body_of_water ?o . { { ?o rdf:type ontology:body_of_water } UNION { ?o rdf:type ontology:waterway } } } } . FILTER ( ?s = ?m ) }
[]
waterway body of water political territorial entity
Q16 Q40 Q643919
SYSTEM
Canada, Austria, Torfaen County Borough
Q736872 Q434192 Q21590062 Q434053 Q782910 Q1447512 Q1628271 Q2044159 Q49562 Q52626 Q677038 Q540185 Q484552 Q433632 Q983556 Q193780 Q635308 Q741749 Q983465 Q2772 Q4359878 Q353618 Q4524665 Q983628 Q846153 Q925913 Q830969 Q846159 Q1324548 Q40 Q962773 Q12071 Q985601 Q615809 Q565002 Q1905388 Q16 Q390069 Q11339 Q55845 Q210887 Q2323549 Q594892 Q582901 Q1853429 Q4408930 Q587114 Q434321 Q11492 Q11263 Q915283 Q11294004 Q4321529 Q661198 Q741765 Q985598 Q1617562 Q493933 Q913483 Q572542 Q13148 Q13149 Q716384 Q499184 Q13462 Q986364 Q956757 Q1798827 Q2244278 Q693258 Q736926 Q433918 Q434019 Q986359 Q575670 Q926410 Q1768232 Q698246 Q15907 Q624967 Q1606460 Q832984 Q11286 Q13150 Q913492 Q1628788 Q13154 Q176624 Q2451327 Q24342199 Q11811 Q426350 Q738674 Q7165 Q983433 Q524431 Q985586 Q1248474 Q11296 Q13424648 Q277302 Q628446 Q366948 Q492741 Q11822 Q932914 Q492748 Q434150 Q944264 Q943431 Q920391 Q399702 Q491786 Q2140 Q985599 Q983635 Q706892 Q615061 Q953876 Q3741 Q657800 Q638013 Q492737 Q433958 Q492735 Q1588135 Q4469165 Q827393 Q11304 Q1260011 Q737440 Q657738 Q584446 Q427330 Q682964 Q171852 Q1607872 Q2110 Q433986 Q501077 Q80967 Q994034 Q586584 Q983577 Q611250 Q615916 Q986727 Q181633 Q643919 Q487268 Q207176 Q736888 Q175057 Q398588 Q1110355 Q434173 Q575639 Q597201 Q434286 Q594961 Q613832 Q491929 Q947285
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q611250
relation P206
type Q1267889
type Q15324
[ANSWERS] are situated in the neighbourhood of approximately the same number of waterways or bodies of water as Polopos
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1267889 . ?c property:P206 ?v } UNION { ?c property:P206 ?v . ?c rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15324 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q611250 property:P206 ?o . { { ?o rdf:type ontology:Q15324 } UNION { ?o rdf:type ontology:Q1267889 } } } } . FILTER ( ?s = ?m ) }
Ayamonte San Andrés y Sauces Antarctic Treaty area Garafía El Sauzal Chantada Soutomaior Llanybydder Adra Formentera San Miguel de Abona Puerto del Rosario Algeciras Santa Cruz de La Palma La Guancha Almuñécar Vallehermoso, Santa Cruz de Tenerife Chipiona Santa Eulària des Riu West Sumatra Pisocine Adeje Szychtory Sant Joan de Labritja San Roque Los Barrios Betancuria Puerto Real El Pinar, Canary Islands Austria San Bartolomé, Las Palmas Vilassar de Mar La Victoria de Acentejo Sorvilán Albuñol L'Alcúdia de Crespins Canada Agaete Llançà Telde Sanlúcar de Barrameda Yaiza, Las Palmas La Oliva Lújar Valverde Sasiv Itamaracá Villa de Mazo Mataró Cadaqués Santiago del Teide Newport City Nuśmice Pájara San Fernando Moya, Las Palmas Nigrán El Ejido Casares Icod de los Vinos La Línea de la Concepción Nerja Arucas, Las Palmas Roquetas de Mar Begur San Juan de la Rambla, Santa Cruz de Tenerife Gáldar, Las Palmas La Frontera Tías, Las Palmas San Bartolomé de Tirajana Isla Cristina Barlovento, Santa Cruz de Tenerife Fuencaliente Santa María de Guía de Gran Canaria Antigua, Fuerteventura Algarrobo Trillo Arona, Tenerife Rota Arafo Malpica de Tajo Conil de la Frontera Castelló d'Empúries Torrox Manilva El Puente del Arzobispo Barbate El Rosario, Tenerife Sé City and County of Cardiff El Port de la Selva Tazacorte Santa Lucía de Tirajana Portbou Güímar Fasnia Tuineje, Las Palmas Rincón de la Victoria Colera Troitske Chiclana de la Frontera Mogán, Las Palmas Los Llanos de Aridane Vélez-Málaga Roses Alajeró, Santa Cruz de Tenerife Estepona Puntagorda Tacoronte, Santa Cruz de Tenerife Granadilla de Abona La Orotava Agüimes, Las Palmas Calvià North Sumatra Province Ingenio, Las Palmas Sant Josep de sa Talaia Artenara, Las Palmas Rubite Los Realejos Special Region of Yogyakarta Santa Úrsula Tinajo, Las Palmas Torremolinos Breña Alta Fuengirola Haría, Las Palmas Uhrynów Vejer de la Frontera L'Escala Hermigua Teguise Arico Valle Gran Rey Salobreña Los Silos Odessa Oblast Piedralaves Lampung Province Breña Baja Lepe Outer Hebrides Variazh Nînovîci, La Matanza de Acentejo Polopos Vasilivka La Aldea de San Nicolás Mykolaiv Oblast Torfaen County Borough Candelaria Monmouthshire Punta Umbría Fernando de Noronha Agulo Níjar Puntallana Gualchos Lake of the Woods, Ontario Tijarafe Buenavista del Norte Mañón Berja Enix, Spain
Canada, Austria and Torfaen County Borough are situated in the neighbourhood of approximately the same number of waterways or bodies of water as Polopos
Canada Austria Torfaen County Borough
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Polopos
relation located next to body of water
type waterway
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:waterway . ?c property:located_next_to_body_of_water ?v } UNION { ?c property:located_next_to_body_of_water ?v . ?c rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:body_of_water } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Polopos property:located_next_to_body_of_water ?o . { { ?o rdf:type ontology:body_of_water } UNION { ?o rdf:type ontology:waterway } } } } . FILTER ( ?s = ?m ) }
[]