Simple Question (Direct)
Simple Question
Q1630075
P19
Q56061
USER
Where was Steve Colter born ?
(Q1630075,P19,c(Q56061))
action filter_type
action find
entity Q1630075
relation P19
type Q56061
['Q1630075', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1630075 property:P19 ?e }
Steve Colter
action filter_type
action find
entity Steve Colter
relation place of birth
type administrative territorial entity
['Steve Colter', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Steve_Colter property:place_of_birth ?e }
[]
administrative territorial entity
Q16556
SYSTEM
Phoenix
Q16556
(Q1630075,P19,c(Q56061))
action filter_type
action find
entity Q1630075
relation P19
type Q56061
Steve Colter was born to [ANSWER]
['Q1630075', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1630075 property:P19 ?e }
Phoenix
Steve Colter was born to Phoenix
Phoenix
action filter_type
action find
entity Steve Colter
relation place of birth
type administrative territorial entity
['Steve Colter', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Steve_Colter property:place_of_birth ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1630075
P106
Q12737077
USER
What is the profession of Steve Colter ?
(Q1630075,P106,c(Q12737077))
action filter_type
action find
entity Q1630075
relation P106
type Q12737077
['Q1630075', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1630075 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Steve Colter
action filter_type
action find
entity Steve Colter
relation occupation
type occupation
['Steve Colter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Steve_Colter property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q1630075,P106,c(Q12737077))
action filter_type
action find
entity Q1630075
relation P106
type Q12737077
The profession of Steve Colter is a [ANSWER]
['Q1630075', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1630075 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
basketball player
The profession of Steve Colter is a basketball player
basketball player
action filter_type
action find
entity Steve Colter
relation occupation
type occupation
['Steve Colter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Steve_Colter property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?h ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P417 ?m . ?m rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 . ?y property:P417 ?b } GROUP BY ?b } . FILTER ( ?c = ?h ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?h ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:patron_saint ?m . ?m rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:occupation . ?b rdf:type ontology:common_name . ?y property:patron_saint ?b } GROUP BY ?b } . FILTER ( ?c = ?h ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saints of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?h ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P417 ?m . ?m rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 . ?y property:P417 ?b } GROUP BY ?b } . FILTER ( ?c = ?h ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saints of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?h ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:patron_saint ?m . ?m rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:occupation . ?b rdf:type ontology:common_name . ?y property:patron_saint ?b } GROUP BY ?b } . FILTER ( ?c = ?h ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q179718 Q3672929
P138
Q44539
USER
Does Church of St.Catherine of Alexandria have that person as its namesake ?
(Q3672929,P138,Q179718)
action is_in
entity Q179718
action find
entity Q3672929
relation P138
['Q3672929', 'P138', 'Q179718']
ASK WHERE { resource:Q3672929 property:P138 resource:Q179718 }
Catherine of Alexandria Church of St.Catherine of Alexandria
action is_in
entity Catherine of Alexandria
action find
entity Church of St.Catherine of Alexandria
relation named after
['Church of St.Catherine of Alexandria', 'named after', 'Catherine of Alexandria']
ASK WHERE { resource:Church_of_St.Catherine_of_Alexandria property:named_after resource:Catherine_of_Alexandria }
[]
temple
SYSTEM
YES
(Q3672929,P138,Q179718)
action is_in
entity Q179718
action find
entity Q3672929
relation P138
[ANSWER]
['Q3672929', 'P138', 'Q179718']
ASK WHERE { resource:Q3672929 property:P138 resource:Q179718 }
Yes
action is_in
entity Catherine of Alexandria
action find
entity Church of St.Catherine of Alexandria
relation named after
['Church of St.Catherine of Alexandria', 'named after', 'Catherine of Alexandria']
ASK WHERE { resource:Church_of_St.Catherine_of_Alexandria property:named_after resource:Catherine_of_Alexandria }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1630075 Q1566189
P54
Q12973014
USER
Is the team that Steve Colter is a member of HYS The Hague ?
(Q1630075,P54,Q1566189)
action is_in
entity Q1566189
action find
entity Q1630075
relation P54
['Q1630075', 'P54', 'Q1566189']
ASK WHERE { resource:Q1630075 property:P54 resource:Q1566189 }
Steve Colter HYS The Hague
action is_in
entity HYS The Hague
action find
entity Steve Colter
relation member of sports team
['Steve Colter', 'member of sports team', 'HYS The Hague']
ASK WHERE { resource:Steve_Colter property:member_of_sports_team resource:HYS_The_Hague }
[]
sports team
SYSTEM
NO
(Q1630075,P54,Q1566189)
action is_in
entity Q1566189
action find
entity Q1630075
relation P54
[ANSWER]
['Q1630075', 'P54', 'Q1566189']
ASK WHERE { resource:Q1630075 property:P54 resource:Q1566189 }
No
action is_in
entity HYS The Hague
action find
entity Steve Colter
relation member of sports team
['Steve Colter', 'member of sports team', 'HYS The Hague']
ASK WHERE { resource:Steve_Colter property:member_of_sports_team resource:HYS_The_Hague }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q179718 Q4122086 Q4633750
P841
Q186081
USER
Does Catherine of Alexandria have 18 Ordibehesht and 2nd Nunavut Legislature as their principal feast day ?
(Q179718,P841,Q4122086) (Q179718,P841,Q4633750)
action is_in
entity Q179718
action intersection
action find_reverse
entity Q4122086
relation P841
action find_reverse
entity Q4633750
relation P841
['Q179718', 'P841', 'Q4122086'] ['Q179718', 'P841', 'Q4633750']
ASK WHERE { resource:Q179718 property:P841 resource:Q4122086 . resource:Q179718 property:P841 resource:Q4633750 }
Catherine of Alexandria 18 Ordibehesht 2nd Nunavut Legislature
action is_in
entity Catherine of Alexandria
action intersection
action find_reverse
entity 18 Ordibehesht
relation feast day
action find_reverse
entity 2nd Nunavut Legislature
relation feast day
['Catherine of Alexandria', 'feast day', '18 Ordibehesht'] ['Catherine of Alexandria', 'feast day', '2nd Nunavut Legislature']
ASK WHERE { resource:Catherine_of_Alexandria property:feast_day resource:18_Ordibehesht . resource:Catherine_of_Alexandria property:feast_day resource:2nd_Nunavut_Legislature }
[]
time interval
SYSTEM
NO
(Q179718,P841,Q4122086) (Q179718,P841,Q4633750)
action is_in
entity Q179718
action intersection
action find_reverse
entity Q4122086
relation P841
action find_reverse
entity Q4633750
relation P841
[ANSWER]
['Q179718', 'P841', 'Q4122086'] ['Q179718', 'P841', 'Q4633750']
ASK WHERE { resource:Q179718 property:P841 resource:Q4122086 . resource:Q179718 property:P841 resource:Q4633750 }
No
action is_in
entity Catherine of Alexandria
action intersection
action find_reverse
entity 18 Ordibehesht
relation feast day
action find_reverse
entity 2nd Nunavut Legislature
relation feast day
['Catherine of Alexandria', 'feast day', '18 Ordibehesht'] ['Catherine of Alexandria', 'feast day', '2nd Nunavut Legislature']
ASK WHERE { resource:Catherine_of_Alexandria property:feast_day resource:18_Ordibehesht . resource:Catherine_of_Alexandria property:feast_day resource:2nd_Nunavut_Legislature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q179718
P411
Q82799
USER
Which name represents the canonization status of Catherine of Alexandria ?
(Q179718,P411,c(Q82799))
action filter_type
action find
entity Q179718
relation P411
type Q82799
['Q179718', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q179718 property:P411 ?d . ?d rdf:type ontology:Q82799 }
Catherine of Alexandria
action filter_type
action find
entity Catherine of Alexandria
relation canonization status
type name
['Catherine of Alexandria', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Catherine_of_Alexandria property:canonization_status ?d . ?d rdf:type ontology:name }
[]
name
Q43115
SYSTEM
saint
Q43115
(Q179718,P411,c(Q82799))
action filter_type
action find
entity Q179718
relation P411
type Q82799
The [ANSWER] represents the canonization status of Catherine of Alexandria
['Q179718', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q179718 property:P411 ?d . ?d rdf:type ontology:Q82799 }
saint
The saint represents the canonization status of Catherine of Alexandria
saint
action filter_type
action find
entity Catherine of Alexandria
relation canonization status
type name
['Catherine of Alexandria', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Catherine_of_Alexandria property:canonization_status ?d . ?d rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43115
P39
Q502895
USER
Which person was responsible for occupying the position of that name ?
(c(Q502895),P39,Q43115)
action filter_type
action find_reverse
entity Q43115
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q43115']
SELECT DISTINCT ?x WHERE { ?x property:P39 resource:Q43115 . ?x rdf:type ontology:Q502895 }
saint
action filter_type
action find_reverse
entity saint
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'saint']
SELECT DISTINCT ?x WHERE { ?x property:position_held resource:saint . ?x rdf:type ontology:common_name }
[]
common name
Q23059811
SYSTEM
Leontius
Q23059811
(c(Q502895),P39,Q43115)
action filter_type
action find_reverse
entity Q43115
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that name
[{'concept': 'Q502895'}, 'P39', 'Q43115']
SELECT DISTINCT ?x WHERE { ?x property:P39 resource:Q43115 . ?x rdf:type ontology:Q502895 }
Leontius
Leontius was responsible for occupying the position of that name
Leontius
action filter_type
action find_reverse
entity saint
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'saint']
SELECT DISTINCT ?x WHERE { ?x property:position_held resource:saint . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16155191
P1303
Q34379 Q502895
USER
How many musical instruments can around the same number of people perform with as Saraswati veena ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q16155191
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Q16155191 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } . FILTER ( ?v = ?f ) }
Saraswati veena
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Saraswati veena
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Saraswati_veena property:instrument ?g . ?g rdf:type ontology:musical_instrument } } . FILTER ( ?v = ?f ) }
[]
musical instrument common name
SYSTEM
60
Q80284 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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q16155191
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Q16155191 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } . FILTER ( ?v = ?f ) }
viola 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
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Saraswati veena
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Saraswati_veena property:instrument ?g . ?g rdf:type ontology:musical_instrument } } . FILTER ( ?v = ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q626035
P1303
Q34379 Q502895
USER
And also tell me about glockenspiel?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q626035
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q626035 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?y = ?c ) }
glockenspiel
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity glockenspiel
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:glockenspiel property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?y = ?c ) }
[]
musical instrument common name
SYSTEM
60
Q80284 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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q626035
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q626035 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?y = ?c ) }
viola 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
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity glockenspiel
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:glockenspiel property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?y = ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q23059811
P39
Q12737077 Q82799
USER
How many occupations and names were a position held by Leontius ?
(Q23059811,P39,c(Q12737077)) (Q23059811,P39,c(Q82799))
action count
action union
action filter_type
action find
entity Q23059811
relation P39
type Q12737077
action filter_type
action find
entity Q23059811
relation P39
type Q82799
['Q23059811', 'P39', {'concept': 'Q12737077'}] ['Q23059811', 'P39', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?f ) { ( ontology:Q12737077 ) ( ontology:Q82799 ) } . ?x rdf:type ?f }
Leontius
action count
action union
action filter_type
action find
entity Leontius
relation position held
type occupation
action filter_type
action find
entity Leontius
relation position held
type name
['Leontius', 'position held', {'concept': 'occupation'}] ['Leontius', 'position held', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?f ) { ( ontology:occupation ) ( ontology:name ) } . ?x rdf:type ?f }
[]
occupation name
SYSTEM
1 occupations and 1 names
Q43115 Q171692
(Q23059811,P39,c(Q12737077)) (Q23059811,P39,c(Q82799))
action count
action union
action filter_type
action find
entity Q23059811
relation P39
type Q12737077
action filter_type
action find
entity Q23059811
relation P39
type Q82799
[ANSWER]
['Q23059811', 'P39', {'concept': 'Q12737077'}] ['Q23059811', 'P39', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?f ) { ( ontology:Q12737077 ) ( ontology:Q82799 ) } . ?x rdf:type ?f }
saint Patriarch
1 occupations and 1 names
action count
action union
action filter_type
action find
entity Leontius
relation position held
type occupation
action filter_type
action find
entity Leontius
relation position held
type name
['Leontius', 'position held', {'concept': 'occupation'}] ['Leontius', 'position held', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?f ) { ( ontology:occupation ) ( ontology:name ) } . ?x rdf:type ?f }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6655 Q179718
P417 P421
Q56061
USER
Which administrative territories have Catherine of Alexandria as their patron saint and are UTC+01:00 a time zone for ?
AND((c(Q56061),P417,Q179718), (c(Q56061),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q179718
relation P417
action find_reverse
entity Q6655
relation P421
type Q56061
{'AND': [[{'concept': 'Q56061'}, 'P417', 'Q179718'], [{'concept': 'Q56061'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . ?o property:P417 resource:Q179718 . ?o property:P421 resource:Q6655 }
UTC+01:00 Catherine of Alexandria
action filter_type
action intersection
action find_reverse
entity Catherine of Alexandria
relation patron saint
action find_reverse
entity UTC+01:00
relation located in time zone
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'patron saint', 'Catherine of Alexandria'], [{'concept': 'administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . ?o property:patron_saint resource:Catherine_of_Alexandria . ?o property:located_in_time_zone resource:UTC+01:00 }
[]
administrative territorial entity
Q374108
SYSTEM
Altrei
Q374108
AND((c(Q56061),P417,Q179718), (c(Q56061),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q179718
relation P417
action find_reverse
entity Q6655
relation P421
type Q56061
[ANSWER] have Catherine of Alexandria as their patron saint and are UTC+01:00 a time zone for
{'AND': [[{'concept': 'Q56061'}, 'P417', 'Q179718'], [{'concept': 'Q56061'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . ?o property:P417 resource:Q179718 . ?o property:P421 resource:Q6655 }
Altrei
Altrei have Catherine of Alexandria as their patron saint and are UTC+01:00 a time zone for
Altrei
action filter_type
action intersection
action find_reverse
entity Catherine of Alexandria
relation patron saint
action find_reverse
entity UTC+01:00
relation located in time zone
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'patron saint', 'Catherine of Alexandria'], [{'concept': 'administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . ?o property:patron_saint resource:Catherine_of_Alexandria . ?o property:located_in_time_zone resource:UTC+01:00 }
[]