Simple Question (Direct)
Simple Question
Q5820386
P40
Q502895
USER
Who is a child of Johan Hårleman ?
(Q5820386,P40,c(Q502895))
action filter_type
action find
entity Q5820386
relation P40
type Q502895
['Q5820386', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q5820386 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Johan Hårleman
action filter_type
action find
entity Johan Hårleman
relation child
type common name
['Johan Hårleman', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Johan_Hårleman property:child ?h . ?h rdf:type ontology:common_name }
[]
common name
Q1038985
SYSTEM
Carl Hårleman
Q1038985
(Q5820386,P40,c(Q502895))
action filter_type
action find
entity Q5820386
relation P40
type Q502895
A child of Johan Hårleman is named [ANSWER]
['Q5820386', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q5820386 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Carl Hårleman
A child of Johan Hårleman is named Carl Hårleman
Carl Hårleman
action filter_type
action find
entity Johan Hårleman
relation child
type common name
['Johan Hårleman', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Johan_Hårleman property:child ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1038985
P84
Q7743
USER
What was designed by that person ?
(c(Q7743),P84,Q1038985)
action filter_type
action find_reverse
entity Q1038985
relation P84
type Q7743
[{'concept': 'Q7743'}, 'P84', 'Q1038985']
SELECT DISTINCT ?t WHERE { ?t property:P84 resource:Q1038985 . ?t rdf:type ontology:Q7743 }
Carl Hårleman
action filter_type
action find_reverse
entity Carl Hårleman
relation architect
type home
[{'concept': 'home'}, 'architect', 'Carl Hårleman']
SELECT DISTINCT ?t WHERE { ?t property:architect resource:Carl_Hårleman . ?t rdf:type ontology:home }
[]
home
Q771891
SYSTEM
Hörningsholm Castle
Q771891
(c(Q7743),P84,Q1038985)
action filter_type
action find_reverse
entity Q1038985
relation P84
type Q7743
[ANSWER] was designed by that person
[{'concept': 'Q7743'}, 'P84', 'Q1038985']
SELECT DISTINCT ?t WHERE { ?t property:P84 resource:Q1038985 . ?t rdf:type ontology:Q7743 }
Hörningsholm Castle
Hörningsholm Castle was designed by that person
Hörningsholm Castle
action filter_type
action find_reverse
entity Carl Hårleman
relation architect
type home
[{'concept': 'home'}, 'architect', 'Carl Hårleman']
SELECT DISTINCT ?t WHERE { ?t property:architect resource:Carl_Hårleman . ?t rdf:type ontology:home }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q771891 Q34 Q503345
P17
Q15617994
USER
Is that home located in Sweden and Emersacker ?
(Q771891,P17,Q34) (Q771891,P17,Q503345)
action is_in
entity Q771891
action intersection
action find_reverse
entity Q34
relation P17
action find_reverse
entity Q503345
relation P17
['Q771891', 'P17', 'Q34'] ['Q771891', 'P17', 'Q503345']
ASK WHERE { resource:Q771891 property:P17 resource:Q34 . resource:Q771891 property:P17 resource:Q503345 }
Hörningsholm Castle Sweden Emersacker
action is_in
entity Hörningsholm Castle
action intersection
action find_reverse
entity Sweden
relation country
action find_reverse
entity Emersacker
relation country
['Hörningsholm Castle', 'country', 'Sweden'] ['Hörningsholm Castle', 'country', 'Emersacker']
ASK WHERE { resource:Hörningsholm_Castle property:country resource:Sweden . resource:Hörningsholm_Castle property:country resource:Emersacker }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q771891,P17,Q34) (Q771891,P17,Q503345)
action is_in
entity Q771891
action intersection
action find_reverse
entity Q34
relation P17
action find_reverse
entity Q503345
relation P17
[ANSWER]
['Q771891', 'P17', 'Q34'] ['Q771891', 'P17', 'Q503345']
ASK WHERE { resource:Q771891 property:P17 resource:Q34 . resource:Q771891 property:P17 resource:Q503345 }
YES and NO respectively
action is_in
entity Hörningsholm Castle
action intersection
action find_reverse
entity Sweden
relation country
action find_reverse
entity Emersacker
relation country
['Hörningsholm Castle', 'country', 'Sweden'] ['Hörningsholm Castle', 'country', 'Emersacker']
ASK WHERE { resource:Hörningsholm_Castle property:country resource:Sweden . resource:Hörningsholm_Castle property:country resource:Emersacker }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q771891
P800
Q502895
USER
Who is author of that home ?
action filter_type
action find_reverse
entity Q771891
relation P800
type Q502895
SELECT DISTINCT ?b WHERE { ?b property:P800 resource:Q771891 . ?b rdf:type ontology:Q502895 }
Hörningsholm Castle
action filter_type
action find_reverse
entity Hörningsholm Castle
relation notable work
type common name
SELECT DISTINCT ?b WHERE { ?b property:notable_work resource:Hörningsholm_Castle . ?b rdf:type ontology:common_name }
[]
common name
Q1038985
SYSTEM
Carl Hårleman
Q1038985
action filter_type
action find_reverse
entity Q771891
relation P800
type Q502895
Is author of that home [ANSWER]
SELECT DISTINCT ?b WHERE { ?b property:P800 resource:Q771891 . ?b rdf:type ontology:Q502895 }
Carl Hårleman
Is author of that home Carl Hårleman
Carl Hårleman
action filter_type
action find_reverse
entity Hörningsholm Castle
relation notable work
type common name
SELECT DISTINCT ?b WHERE { ?b property:notable_work resource:Hörningsholm_Castle . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1038985
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q1038985)
action filter_type
action find
entity Q1038985
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1038985']
SELECT DISTINCT ?t WHERE { resource:Q1038985 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Carl Hårleman
action filter_type
action find
entity Carl Hårleman
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Carl Hårleman']
SELECT DISTINCT ?t WHERE { resource:Carl_Hårleman property:spouse ?t . ?t rdf:type ontology:common_name }
[]
common name
Q4962097
SYSTEM
Henrika Juliana von Liewen
Q4962097
(c(Q502895),P26,Q1038985)
action filter_type
action find
entity Q1038985
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q1038985']
SELECT DISTINCT ?t WHERE { resource:Q1038985 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Henrika Juliana von Liewen
Henrika Juliana von Liewen has that one as spouse
Henrika Juliana von Liewen
action filter_type
action find
entity Carl Hårleman
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Carl Hårleman']
SELECT DISTINCT ?t WHERE { resource:Carl_Hårleman property:spouse ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1038985
P22
Q502895
USER
Who was the father of Carl Hårleman ?
(Q1038985,P22,c(Q502895))
action filter_type
action find
entity Q1038985
relation P22
type Q502895
['Q1038985', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q1038985 property:P22 ?v }
Carl Hårleman
action filter_type
action find
entity Carl Hårleman
relation father
type common name
['Carl Hårleman', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Carl_Hårleman property:father ?v }
[]
common name
Q5820386
SYSTEM
Johan Hårleman
Q5820386
(Q1038985,P22,c(Q502895))
action filter_type
action find
entity Q1038985
relation P22
type Q502895
The father of Carl Hårleman was named [ANSWER]
['Q1038985', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q1038985 property:P22 ?v }
Johan Hårleman
The father of Carl Hårleman was named Johan Hårleman
Johan Hårleman
action filter_type
action find
entity Carl Hårleman
relation father
type common name
['Carl Hårleman', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Carl_Hårleman property:father ?v }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately 40 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 40
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P1303 ?z . ?o rdf:type ontology:Q502895 . ?z rdf:type ontology:Q34379 } GROUP BY ?z } . FILTER ( ?x = 40 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 40
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:instrument ?z . ?o rdf:type ontology:common_name . ?z rdf:type ontology:musical_instrument } GROUP BY ?z } . FILTER ( ?x = 40 ) }
[]
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
value 40
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P1303 ?z . ?o rdf:type ontology:Q502895 . ?z rdf:type ontology:Q34379 } GROUP BY ?z } . FILTER ( ?x = 40 ) }
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
value 40
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:instrument ?z . ?o rdf:type ontology:common_name . ?z rdf:type ontology:musical_instrument } GROUP BY ?z } . FILTER ( ?x = 40 ) }
[]