Simple Question (Direct)
Simple Question
Q2997298
P102
Q7278
USER
Which political party is Corinne Bouchoux a member of ?
(Q2997298,P102,c(Q7278))
action filter_type
action find
entity Q2997298
relation P102
type Q7278
['Q2997298', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?h WHERE { resource:Q2997298 property:P102 ?h . ?h rdf:type ontology:Q7278 }
Corinne Bouchoux
action filter_type
action find
entity Corinne Bouchoux
relation member of political party
type political party
['Corinne Bouchoux', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?h WHERE { resource:Corinne_Bouchoux property:member_of_political_party ?h . ?h rdf:type ontology:political_party }
[]
political party
Q613786
SYSTEM
Europe Ecology – The Greens
Q613786
(Q2997298,P102,c(Q7278))
action filter_type
action find
entity Q2997298
relation P102
type Q7278
[ANSWER]
['Q2997298', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?h WHERE { resource:Q2997298 property:P102 ?h . ?h rdf:type ontology:Q7278 }
Europe Ecology – The Greens
Europe Ecology – The Greens
action filter_type
action find
entity Corinne Bouchoux
relation member of political party
type political party
['Corinne Bouchoux', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?h WHERE { resource:Corinne_Bouchoux property:member_of_political_party ?h . ?h rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q613786
P1142
Q1047113
USER
Which special field is the political ideology of that one ?
(Q613786,P1142,c(Q1047113))
action filter_type
action find
entity Q613786
relation P1142
type Q1047113
['Q613786', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1047113 . resource:Q613786 property:P1142 ?p }
Europe Ecology – The Greens
action filter_type
action find
entity Europe Ecology – The Greens
relation political ideology
type special field
['Europe Ecology – The Greens', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:special_field . resource:Europe_Ecology_–_The_Greens property:political_ideology ?p }
[]
special field
Q1661415
SYSTEM
green politics
Q1661415
(Q613786,P1142,c(Q1047113))
action filter_type
action find
entity Q613786
relation P1142
type Q1047113
[ANSWER]
['Q613786', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1047113 . resource:Q613786 property:P1142 ?p }
green politics
green politics
action filter_type
action find
entity Europe Ecology – The Greens
relation political ideology
type special field
['Europe Ecology – The Greens', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:special_field . resource:Europe_Ecology_–_The_Greens property:political_ideology ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2997298
P108
Q3914
USER
Which school is the employer of Corinne Bouchoux ?
(Q2997298,P108,c(Q3914))
action filter_type
action find
entity Q2997298
relation P108
type Q3914
['Q2997298', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?a WHERE { resource:Q2997298 property:P108 ?a . ?a rdf:type ontology:Q3914 }
Corinne Bouchoux
action filter_type
action find
entity Corinne Bouchoux
relation employer
type school
['Corinne Bouchoux', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?a WHERE { resource:Corinne_Bouchoux property:employer ?a . ?a rdf:type ontology:school }
[]
school
Q859363
SYSTEM
Sciences Po
Q859363
(Q2997298,P108,c(Q3914))
action filter_type
action find
entity Q2997298
relation P108
type Q3914
[ANSWER]
['Q2997298', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?a WHERE { resource:Q2997298 property:P108 ?a . ?a rdf:type ontology:Q3914 }
Sciences Po
Sciences Po
action filter_type
action find
entity Corinne Bouchoux
relation employer
type school
['Corinne Bouchoux', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?a WHERE { resource:Corinne_Bouchoux property:employer ?a . ?a rdf:type ontology:school }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q859363 Q142
P17
Q15617994
USER
Is that school present in France ?
(Q859363,P17,Q142)
action is_in
entity Q142
action find
entity Q859363
relation P17
['Q859363', 'P17', 'Q142']
ASK WHERE { resource:Q859363 property:P17 resource:Q142 }
Sciences Po France
action is_in
entity France
action find
entity Sciences Po
relation country
['Sciences Po', 'country', 'France']
ASK WHERE { resource:Sciences_Po property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q859363,P17,Q142)
action is_in
entity Q142
action find
entity Q859363
relation P17
[ANSWER]
['Q859363', 'P17', 'Q142']
ASK WHERE { resource:Q859363 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity Sciences Po
relation country
['Sciences Po', 'country', 'France']
ASK WHERE { resource:Sciences_Po property:country resource:France }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3424881 Q2997298
P69
Q3914
USER
Which schools were Corinne Bouchoux and Renaud Epstein educated ?
AND((Q2997298,P69,c(Q3914)), (Q3424881,P69,c(Q3914)))
action filter_type
action intersection
action find
entity Q2997298
relation P69
action find
entity Q3424881
relation P69
type Q3914
{'AND': [['Q2997298', 'P69', {'concept': 'Q3914'}], ['Q3424881', 'P69', {'concept': 'Q3914'}]]}
SELECT DISTINCT ?o WHERE { resource:Q3424881 property:P69 ?o . resource:Q2997298 property:P69 ?o . ?o rdf:type ontology:Q3914 }
Renaud Epstein Corinne Bouchoux
action filter_type
action intersection
action find
entity Corinne Bouchoux
relation educated at
action find
entity Renaud Epstein
relation educated at
type school
{'AND': [['Corinne Bouchoux', 'educated at', {'concept': 'school'}], ['Renaud Epstein', 'educated at', {'concept': 'school'}]]}
SELECT DISTINCT ?o WHERE { resource:Renaud_Epstein property:educated_at ?o . resource:Corinne_Bouchoux property:educated_at ?o . ?o rdf:type ontology:school }
[]
school
Q859363
SYSTEM
Sciences Po
Q859363
AND((Q2997298,P69,c(Q3914)), (Q3424881,P69,c(Q3914)))
action filter_type
action intersection
action find
entity Q2997298
relation P69
action find
entity Q3424881
relation P69
type Q3914
[ANSWER]
{'AND': [['Q2997298', 'P69', {'concept': 'Q3914'}], ['Q3424881', 'P69', {'concept': 'Q3914'}]]}
SELECT DISTINCT ?o WHERE { resource:Q3424881 property:P69 ?o . resource:Q2997298 property:P69 ?o . ?o rdf:type ontology:Q3914 }
Sciences Po
Sciences Po
action filter_type
action intersection
action find
entity Corinne Bouchoux
relation educated at
action find
entity Renaud Epstein
relation educated at
type school
{'AND': [['Corinne Bouchoux', 'educated at', {'concept': 'school'}], ['Renaud Epstein', 'educated at', {'concept': 'school'}]]}
SELECT DISTINCT ?o WHERE { resource:Renaud_Epstein property:educated_at ?o . resource:Corinne_Bouchoux property:educated_at ?o . ?o rdf:type ontology:school }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q859363 Q90 Q16894666
P159
Q56061
USER
Does that school have its HQ location at Paris and Mar-Kyuyol ?
(Q859363,P159,Q90) (Q859363,P159,Q16894666)
action is_in
entity Q859363
action intersection
action find_reverse
entity Q90
relation P159
action find_reverse
entity Q16894666
relation P159
['Q859363', 'P159', 'Q90'] ['Q859363', 'P159', 'Q16894666']
ASK WHERE { resource:Q859363 property:P159 resource:Q90 . resource:Q859363 property:P159 resource:Q16894666 }
Sciences Po Paris Mar-Kyuyol
action is_in
entity Sciences Po
action intersection
action find_reverse
entity Paris
relation headquarters location
action find_reverse
entity Mar-Kyuyol
relation headquarters location
['Sciences Po', 'headquarters location', 'Paris'] ['Sciences Po', 'headquarters location', 'Mar-Kyuyol']
ASK WHERE { resource:Sciences_Po property:headquarters_location resource:Paris . resource:Sciences_Po property:headquarters_location resource:Mar-Kyuyol }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q859363,P159,Q90) (Q859363,P159,Q16894666)
action is_in
entity Q859363
action intersection
action find_reverse
entity Q90
relation P159
action find_reverse
entity Q16894666
relation P159
[ANSWER]
['Q859363', 'P159', 'Q90'] ['Q859363', 'P159', 'Q16894666']
ASK WHERE { resource:Q859363 property:P159 resource:Q90 . resource:Q859363 property:P159 resource:Q16894666 }
YES and NO respectively
action is_in
entity Sciences Po
action intersection
action find_reverse
entity Paris
relation headquarters location
action find_reverse
entity Mar-Kyuyol
relation headquarters location
['Sciences Po', 'headquarters location', 'Paris'] ['Sciences Po', 'headquarters location', 'Mar-Kyuyol']
ASK WHERE { resource:Sciences_Po property:headquarters_location resource:Paris . resource:Sciences_Po property:headquarters_location resource:Mar-Kyuyol }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q859363
P512
Q502895
USER
Who has the academic degree that school ?
action filter_type
action find_reverse
entity Q859363
relation P512
type Q502895
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P512 resource:Q859363 }
Sciences Po
action filter_type
action find_reverse
entity Sciences Po
relation academic degree
type common name
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:academic_degree resource:Sciences_Po }
[]
common name
Q2851219
SYSTEM
Anne Méaux
Q2851219
action filter_type
action find_reverse
entity Q859363
relation P512
type Q502895
[ANSWER]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P512 resource:Q859363 }
Anne Méaux
Anne Méaux
action filter_type
action find_reverse
entity Sciences Po
relation academic degree
type common name
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:academic_degree resource:Sciences_Po }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do approximately 162 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 162
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?l = 162 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 162
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?l = 162 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 162
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?l = 162 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 162
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?l = 162 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q386724
USER
How many works depict exactly 2 musical instruments ?
(c(Q386724),P180,c(Q34379))
action count
action equal
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?a ) WHERE { ?v property:P180 ?e . ?v rdf:type ontology:Q386724 . ?e rdf:type ontology:Q34379 } GROUP BY ?v } . FILTER ( ?a = 2 ) }
action count
action equal
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?a ) WHERE { ?v property:depicts ?e . ?v rdf:type ontology:work . ?e rdf:type ontology:musical_instrument } GROUP BY ?v } . FILTER ( ?a = 2 ) }
[]
musical instrument work
SYSTEM
1
Q2901063
(c(Q386724),P180,c(Q34379))
action count
action equal
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[ANSWER]
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?a ) WHERE { ?v property:P180 ?e . ?v rdf:type ontology:Q386724 . ?e rdf:type ontology:Q34379 } GROUP BY ?v } . FILTER ( ?a = 2 ) }
Borghese Vase
1
action count
action equal
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?a ) WHERE { ?v property:depicts ?e . ?v rdf:type ontology:work . ?e rdf:type ontology:musical_instrument } GROUP BY ?v } . FILTER ( ?a = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q81982
P425
Q12737077
USER
How many occupations have harpsichord as the associated field of occupation ?
(Q81982,P425,c(Q12737077))
action count
action filter_type
action find
entity Q81982
relation P425
type Q12737077
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Q81982 property:P425 ?y . ?y rdf:type ontology:Q12737077 }
harpsichord
action count
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:harpsichord property:field_of_this_occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
Q5371902
(Q81982,P425,c(Q12737077))
action count
action filter_type
action find
entity Q81982
relation P425
type Q12737077
[ANSWER]
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Q81982 property:P425 ?y . ?y rdf:type ontology:Q12737077 }
harpsichordist
1
action count
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:harpsichord property:field_of_this_occupation ?y . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q15980346
P425
Q12737077
USER
And how about land developer?
(Q15980346,P425,c(Q12737077))
action count
action filter_type
action find
entity Q15980346
relation P425
type Q12737077
['Q15980346', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:Q12737077 . resource:Q15980346 property:P425 ?e }
land developer
action count
action filter_type
action find
entity land developer
relation field of this occupation
type occupation
['land developer', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:occupation . resource:land_developer property:field_of_this_occupation ?e }
[]
occupation
SYSTEM
1
Q695829
(Q15980346,P425,c(Q12737077))
action count
action filter_type
action find
entity Q15980346
relation P425
type Q12737077
[ANSWER]
['Q15980346', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:Q12737077 . resource:Q15980346 property:P425 ?e }
property developer
1
action count
action filter_type
action find
entity land developer
relation field of this occupation
type occupation
['land developer', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:occupation . resource:land_developer property:field_of_this_occupation ?e }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q21505859
Q12737077
USER
And also tell me about ancient Greek potter?
(Q21505859,P425,c(Q12737077))
action count
action filter_type
action find
entity Q21505859
relation P425
type Q12737077
['Q21505859', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:Q21505859 property:P425 ?u . ?u rdf:type ontology:Q12737077 }
ancient Greek potter
action count
action filter_type
action find
entity ancient Greek potter
relation field of this occupation
type occupation
['ancient Greek potter', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:ancient_Greek_potter property:field_of_this_occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
(Q21505859,P425,c(Q12737077))
action count
action filter_type
action find
entity Q21505859
relation P425
type Q12737077
[ANSWER]
['Q21505859', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:Q21505859 property:P425 ?u . ?u rdf:type ontology:Q12737077 }
1
action count
action filter_type
action find
entity ancient Greek potter
relation field of this occupation
type occupation
['ancient Greek potter', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:ancient_Greek_potter property:field_of_this_occupation ?u . ?u rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2339694 Q859363
P17
Q15617994
USER
Which administrative territories are Sciences Po or SLAF Hingurakgoda present in ?
OR((Q859363,P17,c(Q15617994)), (Q2339694,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q859363
relation P17
action find
entity Q2339694
relation P17
type Q15617994
{'OR': [['Q859363', 'P17', {'concept': 'Q15617994'}], ['Q2339694', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?j ) { ( resource:Q859363 ) ( resource:Q2339694 ) } . ?j property:P17 ?l } . ?l rdf:type ontology:Q15617994 }
SLAF Hingurakgoda Sciences Po
action filter_type
action union
action find
entity Sciences Po
relation country
action find
entity SLAF Hingurakgoda
relation country
type designation for an administrative territorial entity
{'OR': [['Sciences Po', 'country', {'concept': 'designation for an administrative territorial entity'}], ['SLAF Hingurakgoda', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?j ) { ( resource:Sciences_Po ) ( resource:SLAF_Hingurakgoda ) } . ?j property:country ?l } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q854
SYSTEM
France, Sri Lanka
Q142 Q854
OR((Q859363,P17,c(Q15617994)), (Q2339694,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q859363
relation P17
action find
entity Q2339694
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q859363', 'P17', {'concept': 'Q15617994'}], ['Q2339694', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?j ) { ( resource:Q859363 ) ( resource:Q2339694 ) } . ?j property:P17 ?l } . ?l rdf:type ontology:Q15617994 }
France Sri Lanka
France Sri Lanka
action filter_type
action union
action find
entity Sciences Po
relation country
action find
entity SLAF Hingurakgoda
relation country
type designation for an administrative territorial entity
{'OR': [['Sciences Po', 'country', {'concept': 'designation for an administrative territorial entity'}], ['SLAF Hingurakgoda', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?j ) { ( resource:Sciences_Po ) ( resource:SLAF_Hingurakgoda ) } . ?j property:country ?l } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P36
Q15700808 Q56061
USER
How many urban unit definitions or administrative territories are the capitals of that administrative territory ?
(Q854,P36,c(Q15700808)) (Q854,P36,c(Q56061)) (Q142,P36,c(Q15700808)) (Q142,P36,c(Q56061)) (Q854,P36,c(Q15700808)) (Q854,P36,c(Q56061))
['Q854', 'P36', {'concept': 'Q15700808'}] ['Q854', 'P36', {'concept': 'Q56061'}] ['Q142', 'P36', {'concept': 'Q15700808'}] ['Q142', 'P36', {'concept': 'Q56061'}] ['Q854', 'P36', {'concept': 'Q15700808'}] ['Q854', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q854 property:Q8137 ?z } UNION { resource:Q854 property:Q8137 ?y } UNION { resource:Q16275867 property:Q8137 ?z } UNION { resource:Q16275867 property:Q8137 ?y } UNION { resource:Q854 property:Q8137 ?z } UNION { resource:Q854 property:Q8137 ?y } } . ?z rdf:type ontology:Q15700808 . ?y rdf:type ontology:Q56061 }
['Sri Lanka', 'capital', {'concept': 'urban unit definition'}] ['Sri Lanka', 'capital', {'concept': 'administrative territorial entity'}] ['France', 'capital', {'concept': 'urban unit definition'}] ['France', 'capital', {'concept': 'administrative territorial entity'}] ['Sri Lanka', 'capital', {'concept': 'urban unit definition'}] ['Sri Lanka', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Sri_Lanka property:capital ?z } UNION { resource:Sri_Lanka property:capital ?y } UNION { resource:France property:capital ?z } UNION { resource:France property:capital ?y } UNION { resource:Sri_Lanka property:capital ?z } UNION { resource:Sri_Lanka property:capital ?y } } . ?z rdf:type ontology:urban_unit_definition . ?y rdf:type ontology:administrative_territorial_entity }
[]
urban unit definition administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q142
SYSTEM
Did you mean France ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q854 property:Q8137 ?z } UNION { resource:Q854 property:Q8137 ?y } UNION { resource:Q16275867 property:Q8137 ?z } UNION { resource:Q16275867 property:Q8137 ?y } UNION { resource:Q854 property:Q8137 ?z } UNION { resource:Q854 property:Q8137 ?y } } . ?z rdf:type ontology:Q15700808 . ?y rdf:type ontology:Q56061 }
Did you mean France ?
France
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Sri_Lanka property:capital ?z } UNION { resource:Sri_Lanka property:capital ?y } UNION { resource:France property:capital ?z } UNION { resource:France property:capital ?y } UNION { resource:Sri_Lanka property:capital ?z } UNION { resource:Sri_Lanka property:capital ?y } } . ?z rdf:type ontology:urban_unit_definition . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Sri Lanka. Could you tell me the answer for that?
(Q854,P36,c(Q15700808)) (Q854,P36,c(Q56061)) (Q142,P36,c(Q15700808)) (Q142,P36,c(Q56061)) (Q854,P36,c(Q15700808)) (Q854,P36,c(Q56061))
Q854
['Q854', 'P36', {'concept': 'Q15700808'}] ['Q854', 'P36', {'concept': 'Q56061'}] ['Q142', 'P36', {'concept': 'Q15700808'}] ['Q142', 'P36', {'concept': 'Q56061'}] ['Q854', 'P36', {'concept': 'Q15700808'}] ['Q854', 'P36', {'concept': 'Q56061'}]
['Sri Lanka', 'capital', {'concept': 'urban unit definition'}] ['Sri Lanka', 'capital', {'concept': 'administrative territorial entity'}] ['France', 'capital', {'concept': 'urban unit definition'}] ['France', 'capital', {'concept': 'administrative territorial entity'}] ['Sri Lanka', 'capital', {'concept': 'urban unit definition'}] ['Sri Lanka', 'capital', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
2
Q35381 Q41963
(Q854,P36,c(Q15700808)) (Q854,P36,c(Q56061)) (Q142,P36,c(Q15700808)) (Q142,P36,c(Q56061)) (Q854,P36,c(Q15700808)) (Q854,P36,c(Q56061))
[ANSWER]
['Q854', 'P36', {'concept': 'Q15700808'}] ['Q854', 'P36', {'concept': 'Q56061'}] ['Q142', 'P36', {'concept': 'Q15700808'}] ['Q142', 'P36', {'concept': 'Q56061'}] ['Q854', 'P36', {'concept': 'Q15700808'}] ['Q854', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q854 property:Q8137 ?z } UNION { resource:Q854 property:Q8137 ?y } UNION { resource:Q16275867 property:Q8137 ?z } UNION { resource:Q16275867 property:Q8137 ?y } UNION { resource:Q854 property:Q8137 ?z } UNION { resource:Q854 property:Q8137 ?y } } . ?z rdf:type ontology:Q15700808 . ?y rdf:type ontology:Q56061 }
Colombo Sri Jayawardenepura Kotte
2
['Sri Lanka', 'capital', {'concept': 'urban unit definition'}] ['Sri Lanka', 'capital', {'concept': 'administrative territorial entity'}] ['France', 'capital', {'concept': 'urban unit definition'}] ['France', 'capital', {'concept': 'administrative territorial entity'}] ['Sri Lanka', 'capital', {'concept': 'urban unit definition'}] ['Sri Lanka', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Sri_Lanka property:capital ?z } UNION { resource:Sri_Lanka property:capital ?y } UNION { resource:France property:capital ?z } UNION { resource:France property:capital ?y } UNION { resource:Sri_Lanka property:capital ?z } UNION { resource:Sri_Lanka property:capital ?y } } . ?z rdf:type ontology:urban_unit_definition . ?y rdf:type ontology:administrative_territorial_entity }
[]