Simple Question (Direct)
Simple Question
Q2547116
P512
Q3412758
USER
What degree does Walther Doebel hold ?
(Q2547116,P512,c(Q3412758))
action filter_type
action find
entity Q2547116
relation P512
type Q3412758
['Q2547116', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?q WHERE { resource:Q2547116 property:P512 ?q . ?q rdf:type ontology:Q3412758 }
Walther Doebel
action filter_type
action find
entity Walther Doebel
relation academic degree
type qualification
['Walther Doebel', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?q WHERE { resource:Walther_Doebel property:academic_degree ?q . ?q rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q2547116,P512,c(Q3412758))
action filter_type
action find
entity Q2547116
relation P512
type Q3412758
Walther Doebel holds a [ANSWER]
['Q2547116', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?q WHERE { resource:Q2547116 property:P512 ?q . ?q rdf:type ontology:Q3412758 }
doctoral degree
Walther Doebel holds a doctoral degree
doctoral degree
action filter_type
action find
entity Walther Doebel
relation academic degree
type qualification
['Walther Doebel', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?q WHERE { resource:Walther_Doebel property:academic_degree ?q . ?q rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2547116
P937
Q15617994
USER
What are the locations where Walther Doebel worked ?
(Q2547116,P937,c(Q15617994))
action filter_type
action find
entity Q2547116
relation P937
type Q15617994
['Q2547116', 'P937', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q2547116 property:P937 ?v }
Walther Doebel
action filter_type
action find
entity Walther Doebel
relation work location
type designation for an administrative territorial entity
['Walther Doebel', 'work location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Walther_Doebel property:work_location ?v }
[]
designation for an administrative territorial entity
Q450697 Q14859
SYSTEM
Alzenau, Ansbach
Q450697 Q14859
(Q2547116,P937,c(Q15617994))
action filter_type
action find
entity Q2547116
relation P937
type Q15617994
The locations Walther Doebel worked are in [ANSWERS]
['Q2547116', 'P937', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q2547116 property:P937 ?v }
Alzenau Ansbach
The locations Walther Doebel worked are in Alzenau and Ansbach
Alzenau Ansbach
action filter_type
action find
entity Walther Doebel
relation work location
type designation for an administrative territorial entity
['Walther Doebel', 'work location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Walther_Doebel property:work_location ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14859
P47
Q1048835
USER
Who shares the border with Ansbach ?
(Q14859,P47,c(Q1048835))
action filter_type
action find
entity Q14859
relation P47
type Q1048835
['Q14859', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q14859 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Ansbach
action filter_type
action find
entity Ansbach
relation shares border with
type political territorial entity
['Ansbach', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ansbach property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q10454
SYSTEM
Ansbach
Q10454
(Q14859,P47,c(Q1048835))
action filter_type
action find
entity Q14859
relation P47
type Q1048835
Of [ANSWER] shares the border with [ANSWER]
['Q14859', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q14859 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Ansbach
Of Ansbach shares the border with Ansbach
Ansbach
action filter_type
action find
entity Ansbach
relation shares border with
type political territorial entity
['Ansbach', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ansbach property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14859
P840
Q838948
USER
Which works of art have their narrative set in Ansbach ?
(c(Q838948),P840,Q14859)
action filter_type
action find_reverse
entity Q14859
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q14859']
SELECT DISTINCT ?x WHERE { ?x property:P840 resource:Q14859 . ?x rdf:type ontology:Q838948 }
Ansbach
action filter_type
action find_reverse
entity Ansbach
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Ansbach']
SELECT DISTINCT ?x WHERE { ?x property:narrative_location resource:Ansbach . ?x rdf:type ontology:work_of_art }
[]
work of art
Q695888 Q1735052
SYSTEM
The Enigma of Kaspar Hauser, Kaspar Hauser
Q695888 Q1735052
(c(Q838948),P840,Q14859)
action filter_type
action find_reverse
entity Q14859
relation P840
type Q838948
[ANSWERS] have their narrative set in Ansbach
[{'concept': 'Q838948'}, 'P840', 'Q14859']
SELECT DISTINCT ?x WHERE { ?x property:P840 resource:Q14859 . ?x rdf:type ontology:Q838948 }
The Enigma of Kaspar Hauser Kaspar Hauser
The Enigma of Kaspar Hauser and Kaspar Hauser have their narrative set in Ansbach
The Enigma of Kaspar Hauser Kaspar Hauser
action filter_type
action find_reverse
entity Ansbach
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Ansbach']
SELECT DISTINCT ?x WHERE { ?x property:narrative_location resource:Ansbach . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q695888 Q1735052
P57
Q502895
USER
Which people served as the directed of those works of art ?
(Q695888,P57,c(Q502895)) (Q1735052,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
['Q695888', 'P57', {'concept': 'Q502895'}] ['Q1735052', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?i property:P57 ?h . ?h rdf:type ontology:Q502895 . VALUES ( ?i ) { ( resource:Q695888 ) ( resource:Q1735052 ) } }
The Enigma of Kaspar Hauser Kaspar Hauser
action filter_type
action find
entity prev_answer
relation director
type common name
['The Enigma of Kaspar Hauser', 'director', {'concept': 'common name'}] ['Kaspar Hauser', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?i property:director ?h . ?h rdf:type ontology:common_name . VALUES ( ?i ) { ( resource:The_Enigma_of_Kaspar_Hauser ) ( resource:Kaspar_Hauser ) } }
[]
common name
Q44131 Q2078292
SYSTEM
Werner Herzog, Peter Sehr
Q44131 Q2078292
(Q695888,P57,c(Q502895)) (Q1735052,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
[ANSWERS] served as the directed of those works of art
['Q695888', 'P57', {'concept': 'Q502895'}] ['Q1735052', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?i property:P57 ?h . ?h rdf:type ontology:Q502895 . VALUES ( ?i ) { ( resource:Q695888 ) ( resource:Q1735052 ) } }
Werner Herzog Peter Sehr
Werner Herzog and Peter Sehr served as the directed of those works of art
Werner Herzog Peter Sehr
action filter_type
action find
entity prev_answer
relation director
type common name
['The Enigma of Kaspar Hauser', 'director', {'concept': 'common name'}] ['Kaspar Hauser', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?i property:director ?h . ?h rdf:type ontology:common_name . VALUES ( ?i ) { ( resource:The_Enigma_of_Kaspar_Hauser ) ( resource:Kaspar_Hauser ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2078292
P21
Q290
USER
Which sex does that person have ?
(Q2078292,P21,c(Q290))
action filter_type
action find
entity Q2078292
relation P21
type Q290
['Q2078292', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q2078292 property:P21 ?h . ?h rdf:type ontology:Q290 }
Peter Sehr
action filter_type
action find
entity Peter Sehr
relation gender
type sex
['Peter Sehr', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Peter_Sehr property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q44131
SYSTEM
Did you mean Werner Herzog ?
Q44131 Q2078292
(Q44131,P21,c(Q290)) (Q2078292,P21,c(Q290))
[ANSWER]
['Q44131', 'P21', {'concept': 'Q290'}] ['Q2078292', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q2078292 property:P21 ?h . ?h rdf:type ontology:Q290 }
Werner Herzog Peter Sehr
Did you mean Werner Herzog ?
Werner Herzog
['Werner Herzog', 'gender', {'concept': 'sex'}] ['Peter Sehr', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Peter_Sehr property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant Peter Sehr. Could you tell me the answer for that?
(Q2078292,P21,c(Q290))
Q2078292
['Q2078292', 'P21', {'concept': 'Q290'}]
['Peter Sehr', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q2078292,P21,c(Q290))
action filter_type
action find
entity Q2078292
relation P21
type Q290
That person has a [ANSWER]
['Q2078292', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q2078292 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Peter Sehr
relation gender
type sex
['Peter Sehr', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Peter_Sehr property:gender ?h . ?h rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atmost 5308 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5308
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?s <= 5308 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5308
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?s <= 5308 ) }
[]
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 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5308
Atmost 5308 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?s <= 5308 ) }
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 trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Atmost 5308 people know about davul, harpsichord and Wurlitzer electric piano
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5308
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?s <= 5308 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do atmost 6466 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 6466
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?j ) WHERE { ?i rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 . ?k property:P1303 ?i } GROUP BY ?i } . FILTER ( ?j <= 6466 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6466
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?j ) WHERE { ?i rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name . ?k property:instrument ?i } GROUP BY ?i } . FILTER ( ?j <= 6466 ) }
[]
musical instrument common name
SYSTEM
65
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 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 6466
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?j ) WHERE { ?i rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 . ?k property:P1303 ?i } GROUP BY ?i } . FILTER ( ?j <= 6466 ) }
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 trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
65
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6466
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?j ) WHERE { ?i rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name . ?k property:instrument ?i } GROUP BY ?i } . FILTER ( ?j <= 6466 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81982
P921
Q2342494
USER
Which collectable has harpsichord as its main topic ?
(c(Q2342494),P921,Q81982)
action filter_type
action find_reverse
entity Q81982
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q81982']
SELECT DISTINCT ?w WHERE { ?w property:P921 resource:Q81982 . ?w rdf:type ontology:Q2342494 }
harpsichord
action filter_type
action find_reverse
entity harpsichord
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'harpsichord']
SELECT DISTINCT ?w WHERE { ?w property:main_subject resource:harpsichord . ?w rdf:type ontology:collectable }
[]
collectable
Q3817964
SYSTEM
L'art de toucher le clavecin
Q3817964
(c(Q2342494),P921,Q81982)
action filter_type
action find_reverse
entity Q81982
relation P921
type Q2342494
[ANSWER] has harpsichord as its main topic
[{'concept': 'Q2342494'}, 'P921', 'Q81982']
SELECT DISTINCT ?w WHERE { ?w property:P921 resource:Q81982 . ?w rdf:type ontology:Q2342494 }
L'art de toucher le clavecin
L'art de toucher le clavecin has harpsichord as its main topic
L'art de toucher le clavecin
action filter_type
action find_reverse
entity harpsichord
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'harpsichord']
SELECT DISTINCT ?w WHERE { ?w property:main_subject resource:harpsichord . ?w rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81982
P425
Q12737077
USER
Who is associated with the field of occupation that musical instrument ?
(Q3817964,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
['Q3817964', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q81982 property:P425 ?c . ?c rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
["L'art de toucher le clavecin", 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:harpsichord property:field_of_this_occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q5371902
SYSTEM
harpsichordist
Q5371902
(Q3817964,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
T [ANSWER] is associated with the field of occupation that musical instrument
['Q3817964', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q81982 property:P425 ?c . ?c rdf:type ontology:Q12737077 }
harpsichordist
T harpsichordist is associated with the field of occupation that musical instrument
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
["L'art de toucher le clavecin", 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:harpsichord property:field_of_this_occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81982
P106
Q502895
USER
Which people have that musical instrument as his/her means of employment ?
(c(Q502895),P106,Q5371902)
action filter_type
action find_reverse
entity Q81982
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q5371902']
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q81982 . ?l rdf:type ontology:Q502895 }
harpsichord
action filter_type
action find_reverse
entity harpsichord
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'harpsichordist']
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:harpsichord . ?l rdf:type ontology:common_name }
[]
common name
Q710929 Q23014020
SYSTEM
Jan Křtitel Kuchař, Stefan Gottfried
Q710929 Q23014020
(c(Q502895),P106,Q5371902)
action filter_type
action find_reverse
entity Q81982
relation P106
type Q502895
[ANSWERS] have that musical instrument as his/her means of employment
[{'concept': 'Q502895'}, 'P106', 'Q5371902']
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q81982 . ?l rdf:type ontology:Q502895 }
Jan Křtitel Kuchař Stefan Gottfried
Jan Křtitel Kuchař and Stefan Gottfried have that musical instrument as his/her means of employment
Jan Křtitel Kuchař Stefan Gottfried
action filter_type
action find_reverse
entity harpsichord
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'harpsichordist']
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:harpsichord . ?l rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q81982
P106 P21
Q502895
USER
Which people have the profession as harpsichord and have the gender as male ?
AND((c(Q502895),P106,Q81982), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q81982
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q81982'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x property:P21 resource:Q6581097 . ?x property:P106 resource:Q81982 . ?x rdf:type ontology:Q502895 }
male harpsichord
action filter_type
action intersection
action find_reverse
entity harpsichord
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'harpsichord'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x property:gender resource:male . ?x property:occupation resource:harpsichord . ?x rdf:type ontology:common_name }
[]
common name
Q710929 Q23014020
SYSTEM
Jan Křtitel Kuchař, Stefan Gottfried
Q710929 Q23014020
AND((c(Q502895),P106,Q81982), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q81982
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have the profession as harpsichord and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q81982'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x property:P21 resource:Q6581097 . ?x property:P106 resource:Q81982 . ?x rdf:type ontology:Q502895 }
Jan Křtitel Kuchař Stefan Gottfried
Jan Křtitel Kuchař and Stefan Gottfried have the profession as harpsichord and have the gender as male
Jan Křtitel Kuchař Stefan Gottfried
action filter_type
action intersection
action find_reverse
entity harpsichord
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'harpsichord'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x property:gender resource:male . ?x property:occupation resource:harpsichord . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q15461577
P248
Q1752346 Q1914636 Q502895
USER
How many people have been referred in greater number of assemblies or activities than John Martin ?
(c(Q502895),P248,c(Q1752346)|c(Q1914636))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action find_tuple_counts
relation P248
type Q502895
type Q1914636
action count
action filter_multi_types
action find
entity Q15461577
relation P248
type Q1752346
type Q1914636
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1752346'}, {'concept': 'Q1914636'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) ?o WHERE { { ?o property:P248 ?k . ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1752346 } UNION { ?o property:P248 ?k . ?k rdf:type ontology:Q1914636 . ?o rdf:type ontology:Q502895 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:Q15461577 property:P248 ?u . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1914636 ) ( ontology:Q1752346 ) } } } } . FILTER ( ?g > ?l ) }
John Martin
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type assembly
action find_tuple_counts
relation stated in
type common name
type activity
action count
action filter_multi_types
action find
entity John Martin
relation stated in
type assembly
type activity
[{'concept': 'common name'}, 'stated in', [{'concept': 'assembly'}, {'concept': 'activity'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) ?o WHERE { { ?o property:stated_in ?k . ?o rdf:type ontology:common_name . ?k rdf:type ontology:assembly } UNION { ?o property:stated_in ?k . ?k rdf:type ontology:activity . ?o rdf:type ontology:common_name } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:John_Martin property:stated_in ?u . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:activity ) ( ontology:assembly ) } } } } . FILTER ( ?g > ?l ) }
[]
assembly activity common name
SYSTEM
34
Q6255166 Q5239877 Q5239876 Q6257923 Q15456236 Q11035229 Q6260355 Q6130319 Q6249873 Q6249879 Q6228766 Q5232857 Q5232859 Q15999511 Q16059754 Q5606277 Q6239263 Q8020387 Q5239881 Q16228915 Q6237302 Q8017685 Q6263006 Q6263007 Q6255417 Q6246952 Q8020396 Q6262733 Q6244748 Q5240358 Q6145007 Q6246965 Q6246963 Q6262700
(c(Q502895),P248,c(Q1752346)|c(Q1914636))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action find_tuple_counts
relation P248
type Q502895
type Q1914636
action count
action filter_multi_types
action find
entity Q15461577
relation P248
type Q1752346
type Q1914636
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1752346'}, {'concept': 'Q1914636'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) ?o WHERE { { ?o property:P248 ?k . ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1752346 } UNION { ?o property:P248 ?k . ?k rdf:type ontology:Q1914636 . ?o rdf:type ontology:Q502895 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:Q15461577 property:P248 ?u . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1914636 ) ( ontology:Q1752346 ) } } } } . FILTER ( ?g > ?l ) }
John Roberts David Smith David Smith John Simpson William Williams John Carter John Taylor James Brown John Murphy John Murphy John Davies David Davies David Davies William Robinson James Brown Greg Smith John Hill William Williams David Smith John Wilson John Hall William Robinson John Ward John Ward John Rogers John Martin William Williams John Walker John Lewis David Thomas James Walker John Martin John Martin John Walker
34
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type assembly
action find_tuple_counts
relation stated in
type common name
type activity
action count
action filter_multi_types
action find
entity John Martin
relation stated in
type assembly
type activity
[{'concept': 'common name'}, 'stated in', [{'concept': 'assembly'}, {'concept': 'activity'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) ?o WHERE { { ?o property:stated_in ?k . ?o rdf:type ontology:common_name . ?k rdf:type ontology:assembly } UNION { ?o property:stated_in ?k . ?k rdf:type ontology:activity . ?o rdf:type ontology:common_name } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:John_Martin property:stated_in ?u . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:activity ) ( ontology:assembly ) } } } } . FILTER ( ?g > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q8017687
P248
Q1752346 Q1914636 Q502895
USER
And also tell me about William Robinson?
(c(Q502895),P248,c(Q1752346)|c(Q1914636))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action find_tuple_counts
relation P248
type Q502895
type Q1914636
action count
action filter_multi_types
action find
entity Q8017687
relation P248
type Q1752346
type Q1914636
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1752346'}, {'concept': 'Q1914636'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { FILTER ( ?o > ?j ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { resource:Q8017687 property:P248 ?e . { { ?e rdf:type ontology:Q1752346 } UNION { ?e rdf:type ontology:Q1914636 } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:Q502895 . ?d rdf:type ontology:Q1752346 . ?k property:P248 ?d } UNION { ?k property:P248 ?d . ?k rdf:type ontology:Q502895 . ?d rdf:type ontology:Q1914636 } } GROUP BY ?k } }
William Robinson
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type assembly
action find_tuple_counts
relation stated in
type common name
type activity
action count
action filter_multi_types
action find
entity William Robinson
relation stated in
type assembly
type activity
[{'concept': 'common name'}, 'stated in', [{'concept': 'assembly'}, {'concept': 'activity'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { FILTER ( ?o > ?j ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { resource:William_Robinson property:stated_in ?e . { { ?e rdf:type ontology:assembly } UNION { ?e rdf:type ontology:activity } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:common_name . ?d rdf:type ontology:assembly . ?k property:stated_in ?d } UNION { ?k property:stated_in ?d . ?k rdf:type ontology:common_name . ?d rdf:type ontology:activity } } GROUP BY ?k } }
[]
assembly activity common name
SYSTEM
34
Q6255166 Q5239877 Q5239876 Q6257923 Q15456236 Q11035229 Q6260355 Q6130319 Q6249873 Q6249879 Q6228766 Q5232857 Q5232859 Q15999511 Q16059754 Q5606277 Q6239263 Q8020387 Q5239881 Q16228915 Q6237302 Q8017685 Q6263006 Q6263007 Q6255417 Q6246952 Q8020396 Q6262733 Q6244748 Q5240358 Q6145007 Q6246965 Q6246963 Q6262700
(c(Q502895),P248,c(Q1752346)|c(Q1914636))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action find_tuple_counts
relation P248
type Q502895
type Q1914636
action count
action filter_multi_types
action find
entity Q8017687
relation P248
type Q1752346
type Q1914636
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1752346'}, {'concept': 'Q1914636'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { FILTER ( ?o > ?j ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { resource:Q8017687 property:P248 ?e . { { ?e rdf:type ontology:Q1752346 } UNION { ?e rdf:type ontology:Q1914636 } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:Q502895 . ?d rdf:type ontology:Q1752346 . ?k property:P248 ?d } UNION { ?k property:P248 ?d . ?k rdf:type ontology:Q502895 . ?d rdf:type ontology:Q1914636 } } GROUP BY ?k } }
John Roberts David Smith David Smith John Simpson William Williams John Carter John Taylor James Brown John Murphy John Murphy John Davies David Davies David Davies William Robinson James Brown Greg Smith John Hill William Williams David Smith John Wilson John Hall William Robinson John Ward John Ward John Rogers John Martin William Williams John Walker John Lewis David Thomas James Walker John Martin John Martin John Walker
34
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type assembly
action find_tuple_counts
relation stated in
type common name
type activity
action count
action filter_multi_types
action find
entity William Robinson
relation stated in
type assembly
type activity
[{'concept': 'common name'}, 'stated in', [{'concept': 'assembly'}, {'concept': 'activity'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { FILTER ( ?o > ?j ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { resource:William_Robinson property:stated_in ?e . { { ?e rdf:type ontology:assembly } UNION { ?e rdf:type ontology:activity } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?k WHERE { { ?k rdf:type ontology:common_name . ?d rdf:type ontology:assembly . ?k property:stated_in ?d } UNION { ?k property:stated_in ?d . ?k rdf:type ontology:common_name . ?d rdf:type ontology:activity } } GROUP BY ?k } }
[]