Simple Question (Direct)
Simple Question
Q4978498
P106
Q12737077
USER
Which occupations have Bruce Woodley as his/her 's career ?
(Q4978498,P106,c(Q12737077))
action filter_type
action find
entity Q4978498
relation P106
type Q12737077
['Q4978498', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q4978498 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Bruce Woodley
action filter_type
action find
entity Bruce Woodley
relation occupation
type occupation
['Bruce Woodley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bruce_Woodley property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q753110 Q36834 Q177220
SYSTEM
songwriter, composer, singer
Q753110 Q36834 Q177220
(Q4978498,P106,c(Q12737077))
action filter_type
action find
entity Q4978498
relation P106
type Q12737077
The [ANSWERS] have Bruce Woodley as his/her 's career
['Q4978498', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q4978498 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
songwriter composer singer
The songwriter, composer and singer have Bruce Woodley as his/her 's career
songwriter composer singer
action filter_type
action find
entity Bruce Woodley
relation occupation
type occupation
['Bruce Woodley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bruce_Woodley property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4978498
P69
Q159334
USER
Which secondary school was that person educated at ?
(Q753110,P69,c(Q159334)) (Q36834,P69,c(Q159334)) (Q177220,P69,c(Q159334))
action filter_type
action find
entity Q4978498
relation P69
type Q159334
['Q753110', 'P69', {'concept': 'Q159334'}] ['Q36834', 'P69', {'concept': 'Q159334'}] ['Q177220', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?p WHERE { resource:Q4978498 property:P69 ?p . ?p rdf:type ontology:Q159334 }
Bruce Woodley
action filter_type
action find
entity Bruce Woodley
relation educated at
type secondary school
['songwriter', 'educated at', {'concept': 'secondary school'}] ['composer', 'educated at', {'concept': 'secondary school'}] ['singer', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?p WHERE { resource:Bruce_Woodley property:educated_at ?p . ?p rdf:type ontology:secondary_school }
[]
secondary school
Q6811796
SYSTEM
Melbourne High School
Q6811796
(Q753110,P69,c(Q159334)) (Q36834,P69,c(Q159334)) (Q177220,P69,c(Q159334))
action filter_type
action find
entity Q4978498
relation P69
type Q159334
That person was educated at [ANSWER]
['Q753110', 'P69', {'concept': 'Q159334'}] ['Q36834', 'P69', {'concept': 'Q159334'}] ['Q177220', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?p WHERE { resource:Q4978498 property:P69 ?p . ?p rdf:type ontology:Q159334 }
Melbourne High School
That person was educated at Melbourne High School
Melbourne High School
action filter_type
action find
entity Bruce Woodley
relation educated at
type secondary school
['songwriter', 'educated at', {'concept': 'secondary school'}] ['composer', 'educated at', {'concept': 'secondary school'}] ['singer', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?p WHERE { resource:Bruce_Woodley property:educated_at ?p . ?p rdf:type ontology:secondary_school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4978498
P136
Q151885
USER
Which genre does that person belong to ?
(Q6811796,P136,c(Q151885))
action filter_type
action find
entity Q4978498
relation P136
type Q151885
['Q6811796', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?y WHERE { resource:Q4978498 property:P136 ?y . ?y rdf:type ontology:Q151885 }
Bruce Woodley
action filter_type
action find
entity Bruce Woodley
relation genre
type concept
['Melbourne High School', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?y WHERE { resource:Bruce_Woodley property:genre ?y . ?y rdf:type ontology:concept }
[]
concept
Q8341
SYSTEM
jazz
Q8341
(Q6811796,P136,c(Q151885))
action filter_type
action find
entity Q4978498
relation P136
type Q151885
That person belongs to [ANSWER]
['Q6811796', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?y WHERE { resource:Q4978498 property:P136 ?y . ?y rdf:type ontology:Q151885 }
jazz
That person belongs to jazz
jazz
action filter_type
action find
entity Bruce Woodley
relation genre
type concept
['Melbourne High School', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?y WHERE { resource:Bruce_Woodley property:genre ?y . ?y rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P101
Q502895 Q334453
USER
How many people or divisions work in the domain of that concept ?
(c(Q502895),P101,Q8341) (c(Q334453),P101,Q8341) (c(Q502895),P101,Q8341) (c(Q334453),P101,Q8341)
action count
action union
action filter_type
action find_reverse
entity Q8341
relation P101
type Q502895
action filter_type
action find_reverse
entity Q8341
relation P101
type Q334453
[{'concept': 'Q502895'}, 'P101', 'Q8341'] [{'concept': 'Q334453'}, 'P101', 'Q8341'] [{'concept': 'Q502895'}, 'P101', 'Q8341'] [{'concept': 'Q334453'}, 'P101', 'Q8341']
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:Q502895 ) ( ontology:Q334453 ) } }
action count
action union
action filter_type
action find_reverse
entity jazz
relation field of work
type common name
action filter_type
action find_reverse
entity jazz
relation field of work
type division
[{'concept': 'common name'}, 'field of work', 'jazz'] [{'concept': 'division'}, 'field of work', 'jazz'] [{'concept': 'common name'}, 'field of work', 'jazz'] [{'concept': 'division'}, 'field of work', 'jazz']
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:common_name ) ( ontology:division ) } }
[]
common name division
SYSTEM
5
Q7346 Q24705690 Q27666009 Q16658211 Q22191950
(c(Q502895),P101,Q8341) (c(Q334453),P101,Q8341) (c(Q502895),P101,Q8341) (c(Q334453),P101,Q8341)
action count
action union
action filter_type
action find_reverse
entity Q8341
relation P101
type Q502895
action filter_type
action find_reverse
entity Q8341
relation P101
type Q334453
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q8341'] [{'concept': 'Q334453'}, 'P101', 'Q8341'] [{'concept': 'Q502895'}, 'P101', 'Q8341'] [{'concept': 'Q334453'}, 'P101', 'Q8341']
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:Q502895 ) ( ontology:Q334453 ) } }
John Coltrane Doreen Ketchens Yvan Amar Frank Hagège evosound
5
action count
action union
action filter_type
action find_reverse
entity jazz
relation field of work
type common name
action filter_type
action find_reverse
entity jazz
relation field of work
type division
[{'concept': 'common name'}, 'field of work', 'jazz'] [{'concept': 'division'}, 'field of work', 'jazz'] [{'concept': 'common name'}, 'field of work', 'jazz'] [{'concept': 'division'}, 'field of work', 'jazz']
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:common_name ) ( ontology:division ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6811796
P17
Q1048835
USER
Which political territory is Melbourne High School a part of ?
(Q6811796,P17,c(Q1048835))
action filter_type
action find
entity Q6811796
relation P17
type Q1048835
['Q6811796', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q6811796 property:P17 ?m . ?m rdf:type ontology:Q1048835 }
Melbourne High School
action filter_type
action find
entity Melbourne High School
relation country
type political territorial entity
['Melbourne High School', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Melbourne_High_School property:country ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q6811796,P17,c(Q1048835))
action filter_type
action find
entity Q6811796
relation P17
type Q1048835
[ANSWER] is Melbourne High School a part of
['Q6811796', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q6811796 property:P17 ?m . ?m rdf:type ontology:Q1048835 }
Australia
Australia is Melbourne High School a part of
Australia
action filter_type
action find
entity Melbourne High School
relation country
type political territorial entity
['Melbourne High School', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Melbourne_High_School property:country ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3433584
Q1048835
USER
And how about Rivière-Saint-Jean?
(Q3433584,P17,c(Q1048835))
action filter_type
action find
entity Q3433584
relation P17
type Q1048835
['Q3433584', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q3433584 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Rivière-Saint-Jean
action filter_type
action find
entity Rivière-Saint-Jean
relation country
type political territorial entity
['Rivière-Saint-Jean', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Rivière-Saint-Jean property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3433584,P17,c(Q1048835))
action filter_type
action find
entity Q3433584
relation P17
type Q1048835
[ANSWER]
['Q3433584', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q3433584 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Canada
Canada
action filter_type
action find
entity Rivière-Saint-Jean
relation country
type political territorial entity
['Rivière-Saint-Jean', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Rivière-Saint-Jean property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1007
P530
Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with around the same number of political territories as Guinea-Bissau ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1007
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Q1007 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?x = ?g ) }
Guinea-Bissau
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea-Bissau
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { ?s property:diplomatic_relation ?c . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Guinea-Bissau property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x = ?g ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
72
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1007
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Q1007 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?x = ?g ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
72
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea-Bissau
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { ?s property:diplomatic_relation ?c . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Guinea-Bissau property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x = ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q398
P530
Q15617994 Q1048835
USER
And how about Bahrain?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:P530 ?y . ?b rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q398 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?c = ?x ) }
Bahrain
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bahrain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:diplomatic_relation ?y . ?b rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Bahrain property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c = ?x ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
12
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:P530 ?y . ?b rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q398 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?c = ?x ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
12
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bahrain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:diplomatic_relation ?y . ?b rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Bahrain property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c = ?x ) }
[]