Simple Question (Direct)
Simple Question
Q237871
P22
Q502895
USER
Which male person has a child named Catherine of Vadstena ?
(Q237871,P22,c(Q502895))
action filter_type
action find
entity Q237871
relation P22
type Q502895
['Q237871', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q237871 property:P22 ?q . ?q rdf:type ontology:Q502895 }
Catherine of Vadstena
action filter_type
action find
entity Catherine of Vadstena
relation father
type common name
['Catherine of Vadstena', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Catherine_of_Vadstena property:father ?q . ?q rdf:type ontology:common_name }
[]
common name
Q6219132
SYSTEM
Ulf Gudmarsson
Q6219132
(Q237871,P22,c(Q502895))
action filter_type
action find
entity Q237871
relation P22
type Q502895
[ANSWER]
['Q237871', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q237871 property:P22 ?q . ?q rdf:type ontology:Q502895 }
Ulf Gudmarsson
Ulf Gudmarsson
action filter_type
action find
entity Catherine of Vadstena
relation father
type common name
['Catherine of Vadstena', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Catherine_of_Vadstena property:father ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6219132
P7
Q502895
USER
Who is a sibling of that one ?
(c(Q502895),P7,Q6219132)
action filter_type
action find
entity Q6219132
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q6219132']
SELECT DISTINCT ?k WHERE { resource:Q6219132 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Ulf Gudmarsson
action filter_type
action find
entity Ulf Gudmarsson
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Ulf Gudmarsson']
SELECT DISTINCT ?k WHERE { resource:Ulf_Gudmarsson property:brother ?k . ?k rdf:type ontology:common_name }
[]
common name
Q5971807
SYSTEM
Magnus Gudmarsson
Q5971807
(c(Q502895),P7,Q6219132)
action filter_type
action find
entity Q6219132
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q6219132']
SELECT DISTINCT ?k WHERE { resource:Q6219132 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Magnus Gudmarsson
Magnus Gudmarsson
action filter_type
action find
entity Ulf Gudmarsson
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Ulf Gudmarsson']
SELECT DISTINCT ?k WHERE { resource:Ulf_Gudmarsson property:brother ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5971807
P26
Q502895
USER
Who is married to that one ?
(Q5971807,P26,c(Q502895))
action filter_type
action find
entity Q5971807
relation P26
type Q502895
['Q5971807', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q5971807 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Magnus Gudmarsson
action filter_type
action find
entity Magnus Gudmarsson
relation spouse
type common name
['Magnus Gudmarsson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Magnus_Gudmarsson property:spouse ?d . ?d rdf:type ontology:common_name }
[]
common name
Q4958287
SYSTEM
Katarina Birgersdotter
Q4958287
(Q5971807,P26,c(Q502895))
action filter_type
action find
entity Q5971807
relation P26
type Q502895
[ANSWER]
['Q5971807', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q5971807 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Katarina Birgersdotter
Katarina Birgersdotter
action filter_type
action find
entity Magnus Gudmarsson
relation spouse
type common name
['Magnus Gudmarsson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Magnus_Gudmarsson property:spouse ?d . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q4958287 Q18326118
P40
Q502895
USER
Does Ingeborg Bengtsdotter have that one as an offspring ?
(Q18326118,P40,Q4958287)
action is_in
entity Q4958287
action find
entity Q18326118
relation P40
['Q18326118', 'P40', 'Q4958287']
ASK WHERE { resource:Q18326118 property:P40 resource:Q4958287 }
Katarina Birgersdotter Ingeborg Bengtsdotter
action is_in
entity Katarina Birgersdotter
action find
entity Ingeborg Bengtsdotter
relation child
['Ingeborg Bengtsdotter', 'child', 'Katarina Birgersdotter']
ASK WHERE { resource:Ingeborg_Bengtsdotter property:child resource:Katarina_Birgersdotter }
[]
common name
SYSTEM
YES
(Q18326118,P40,Q4958287)
action is_in
entity Q4958287
action find
entity Q18326118
relation P40
[ANSWER]
['Q18326118', 'P40', 'Q4958287']
ASK WHERE { resource:Q18326118 property:P40 resource:Q4958287 }
Yes
action is_in
entity Katarina Birgersdotter
action find
entity Ingeborg Bengtsdotter
relation child
['Ingeborg Bengtsdotter', 'child', 'Katarina Birgersdotter']
ASK WHERE { resource:Ingeborg_Bengtsdotter property:child resource:Katarina_Birgersdotter }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q4958287
P9 P21
Q502895
USER
Which people are Katarina Birgersdotter a sister of and are a male ?
AND((c(Q502895),P9,Q4958287), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4958287
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q4958287'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P9 resource:Q4958287 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
male Katarina Birgersdotter
action filter_type
action intersection
action find_reverse
entity Katarina Birgersdotter
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Katarina Birgersdotter'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:sister resource:Katarina_Birgersdotter . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
common name
Q5824847
SYSTEM
Israel Birgersson
Q5824847
AND((c(Q502895),P9,Q4958287), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4958287
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER]
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q4958287'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P9 resource:Q4958287 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
Israel Birgersson
Israel Birgersson
action filter_type
action intersection
action find_reverse
entity Katarina Birgersdotter
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Katarina Birgersdotter'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:sister resource:Katarina_Birgersdotter . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q82955 Q4958287
P106 P40
Q502895
USER
Which people have Katarina Birgersdotter as a child and have a job as politician ?
AND((c(Q502895),P40,Q4958287), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q4958287
relation P40
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q4958287'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?m WHERE { ?m property:P106 resource:Q82955 . ?m property:P40 resource:Q4958287 . ?m rdf:type ontology:Q502895 }
politician Katarina Birgersdotter
action filter_type
action intersection
action find_reverse
entity Katarina Birgersdotter
relation child
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Katarina Birgersdotter'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?m WHERE { ?m property:occupation resource:politician . ?m property:child resource:Katarina_Birgersdotter . ?m rdf:type ontology:common_name }
[]
common name
Q5576561
SYSTEM
Birger Persson
Q5576561
AND((c(Q502895),P40,Q4958287), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q4958287
relation P40
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWER]
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q4958287'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?m WHERE { ?m property:P106 resource:Q82955 . ?m property:P40 resource:Q4958287 . ?m rdf:type ontology:Q502895 }
Birger Persson
Birger Persson
action filter_type
action intersection
action find_reverse
entity Katarina Birgersdotter
relation child
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Katarina Birgersdotter'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?m WHERE { ?m property:occupation resource:politician . ?m property:child resource:Katarina_Birgersdotter . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q5576561 Q20524 Q21000484
P27
Q15617994
USER
Is that person a native of Valgrana and Osgodby ?
(Q5576561,P27,Q20524) (Q5576561,P27,Q21000484)
action is_in
entity Q5576561
action intersection
action find_reverse
entity Q20524
relation P27
action find_reverse
entity Q21000484
relation P27
['Q5576561', 'P27', 'Q20524'] ['Q5576561', 'P27', 'Q21000484']
ASK WHERE { resource:Q5576561 property:P27 resource:Q20524 . resource:Q5576561 property:P27 resource:Q21000484 }
Birger Persson Valgrana Osgodby
action is_in
entity Birger Persson
action intersection
action find_reverse
entity Valgrana
relation country of citizenship
action find_reverse
entity Osgodby
relation country of citizenship
['Birger Persson', 'country of citizenship', 'Valgrana'] ['Birger Persson', 'country of citizenship', 'Osgodby']
ASK WHERE { resource:Birger_Persson property:country_of_citizenship resource:Valgrana . resource:Birger_Persson property:country_of_citizenship resource:Osgodby }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5576561,P27,Q20524) (Q5576561,P27,Q21000484)
action is_in
entity Q5576561
action intersection
action find_reverse
entity Q20524
relation P27
action find_reverse
entity Q21000484
relation P27
[ANSWER]
['Q5576561', 'P27', 'Q20524'] ['Q5576561', 'P27', 'Q21000484']
ASK WHERE { resource:Q5576561 property:P27 resource:Q20524 . resource:Q5576561 property:P27 resource:Q21000484 }
No
action is_in
entity Birger Persson
action intersection
action find_reverse
entity Valgrana
relation country of citizenship
action find_reverse
entity Osgodby
relation country of citizenship
['Birger Persson', 'country of citizenship', 'Valgrana'] ['Birger Persson', 'country of citizenship', 'Osgodby']
ASK WHERE { resource:Birger_Persson property:country_of_citizenship resource:Valgrana . resource:Birger_Persson property:country_of_citizenship resource:Osgodby }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q237871 Q21513466 Q5572961
P25
Q502895
USER
Does Catherine of Vadstena have Juan Antonio Francisco Gutiérrez and Sten Bergquist as mother ?
(Q237871,P25,Q21513466) (Q237871,P25,Q5572961)
action is_in
entity Q237871
action intersection
action find_reverse
entity Q21513466
relation P25
action find_reverse
entity Q5572961
relation P25
['Q237871', 'P25', 'Q21513466'] ['Q237871', 'P25', 'Q5572961']
ASK WHERE { resource:Q237871 property:P25 resource:Q21513466 . resource:Q237871 property:P25 resource:Q5572961 }
Catherine of Vadstena Juan Antonio Francisco Gutiérrez Sten Bergquist
action is_in
entity Catherine of Vadstena
action intersection
action find_reverse
entity Juan Antonio Francisco Gutiérrez
relation mother
action find_reverse
entity Sten Bergquist
relation mother
['Catherine of Vadstena', 'mother', 'Juan Antonio Francisco Gutiérrez'] ['Catherine of Vadstena', 'mother', 'Sten Bergquist']
ASK WHERE { resource:Catherine_of_Vadstena property:mother resource:Juan_Antonio_Francisco_Gutiérrez . resource:Catherine_of_Vadstena property:mother resource:Sten_Bergquist }
[]
common name
SYSTEM
NO
(Q237871,P25,Q21513466) (Q237871,P25,Q5572961)
action is_in
entity Q237871
action intersection
action find_reverse
entity Q21513466
relation P25
action find_reverse
entity Q5572961
relation P25
[ANSWER]
['Q237871', 'P25', 'Q21513466'] ['Q237871', 'P25', 'Q5572961']
ASK WHERE { resource:Q237871 property:P25 resource:Q21513466 . resource:Q237871 property:P25 resource:Q5572961 }
No
action is_in
entity Catherine of Vadstena
action intersection
action find_reverse
entity Juan Antonio Francisco Gutiérrez
relation mother
action find_reverse
entity Sten Bergquist
relation mother
['Catherine of Vadstena', 'mother', 'Juan Antonio Francisco Gutiérrez'] ['Catherine of Vadstena', 'mother', 'Sten Bergquist']
ASK WHERE { resource:Catherine_of_Vadstena property:mother resource:Juan_Antonio_Francisco_Gutiérrez . resource:Catherine_of_Vadstena property:mother resource:Sten_Bergquist }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atmost 6473 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 6473
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?h <= 6473 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6473
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?h <= 6473 ) }
[]
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 6473
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?h <= 6473 ) }
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
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6473
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?h <= 6473 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q5971807
P21 P22
Q502895
USER
Which people have Magnus Gudmarsson as dad and have female as the sex ?
AND((c(Q502895),P22,Q5971807), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q5971807
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q5971807'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?a WHERE { ?a property:P21 resource:Q6581072 . ?a property:P22 resource:Q5971807 . ?a rdf:type ontology:Q502895 }
female Magnus Gudmarsson
action filter_type
action intersection
action find_reverse
entity Magnus Gudmarsson
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Magnus Gudmarsson'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?a WHERE { ?a property:gender resource:female . ?a property:father resource:Magnus_Gudmarsson . ?a rdf:type ontology:common_name }
[]
common name
Q18326113
SYSTEM
Ingeborg Magnusdotter
Q18326113
AND((c(Q502895),P22,Q5971807), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q5971807
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER]
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q5971807'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?a WHERE { ?a property:P21 resource:Q6581072 . ?a property:P22 resource:Q5971807 . ?a rdf:type ontology:Q502895 }
Ingeborg Magnusdotter
Ingeborg Magnusdotter
action filter_type
action intersection
action find_reverse
entity Magnus Gudmarsson
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Magnus Gudmarsson'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?a WHERE { ?a property:gender resource:female . ?a property:father resource:Magnus_Gudmarsson . ?a rdf:type ontology:common_name }
[]