Simple Question (Direct)
Simple Question
Q1832646
P21
Q290
USER
Which sex does Charles Philippe de Croÿ, Marquis d’Havré have ?
(Q1832646,P21,c(Q290))
action filter_type
action find
entity Q1832646
relation P21
type Q290
['Q1832646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1832646 property:P21 ?x . ?x rdf:type ontology:Q290 }
Charles Philippe de Croÿ, Marquis d’Havré
action filter_type
action find
entity Charles Philippe de Croÿ, Marquis d’Havré
relation gender
type sex
['Charles Philippe de Croÿ, Marquis d’Havré', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Charles_Philippe_de_Croÿ,_Marquis_d’Havré property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1832646,P21,c(Q290))
action filter_type
action find
entity Q1832646
relation P21
type Q290
Charles Philippe de Croÿ , Marquis d ’ Havré has the [ANSWER]
['Q1832646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1832646 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
Charles Philippe de Croÿ , Marquis d ’ Havré has the male
male
action filter_type
action find
entity Charles Philippe de Croÿ, Marquis d’Havré
relation gender
type sex
['Charles Philippe de Croÿ, Marquis d’Havré', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Charles_Philippe_de_Croÿ,_Marquis_d’Havré property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1832646
P7
Q502895
USER
Who have that one as their sibling ?
(c(Q502895),P7,Q6581097)
action filter_type
action find
entity Q1832646
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q6581097']
SELECT DISTINCT ?j WHERE { resource:Q1832646 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Charles Philippe de Croÿ, Marquis d’Havré
action filter_type
action find
entity Charles Philippe de Croÿ, Marquis d’Havré
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'male']
SELECT DISTINCT ?j WHERE { resource:Charles_Philippe_de_Croÿ,_Marquis_d’Havré property:brother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q721509 Q4723
SYSTEM
Philipe de Croÿ, Duke of Aerschot, Charles II de Croÿ
Q721509 Q4723
(c(Q502895),P7,Q6581097)
action filter_type
action find
entity Q1832646
relation P7
type Q502895
[ANSWERS] have that one as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q6581097']
SELECT DISTINCT ?j WHERE { resource:Q1832646 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Philipe de Croÿ, Duke of Aerschot Charles II de Croÿ
Philipe de Croÿ, Duke of Aerschot and Charles II de Croÿ have that one as their sibling
Philipe de Croÿ, Duke of Aerschot Charles II de Croÿ
action filter_type
action find
entity Charles Philippe de Croÿ, Marquis d’Havré
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'male']
SELECT DISTINCT ?j WHERE { resource:Charles_Philippe_de_Croÿ,_Marquis_d’Havré property:brother ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q721509 Q4723
P40
Q502895
USER
Which people have Philipe de Croÿ, Duke of Aerschot and Charles II de Croÿ as a child ?
(c(Q502895),P40,Q721509) (c(Q502895),P40,Q4723)
action union
action filter_type
action find_reverse
entity Q721509
relation P40
type Q502895
action filter_type
action find_reverse
entity Q4723
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q721509'] [{'concept': 'Q502895'}, 'P40', 'Q4723']
SELECT DISTINCT ?g WHERE { ?g property:P40 ?o . VALUES ( ?o ) { ( resource:Q721509 ) ( resource:Q4723 ) } }
Philipe de Croÿ, Duke of Aerschot Charles II de Croÿ
action union
action filter_type
action find_reverse
entity Philipe de Croÿ, Duke of Aerschot
relation child
type common name
action filter_type
action find_reverse
entity Charles II de Croÿ
relation child
type common name
[{'concept': 'common name'}, 'child', 'Philipe de Croÿ, Duke of Aerschot'] [{'concept': 'common name'}, 'child', 'Charles II de Croÿ']
SELECT DISTINCT ?g WHERE { ?g property:child ?o . VALUES ( ?o ) { ( resource:Philipe_de_Croÿ,_Duke_of_Aerschot ) ( resource:Charles_II_de_Croÿ ) } }
[]
common name
Q935822
SYSTEM
Philippe II de Croÿ
Q935822
(c(Q502895),P40,Q721509) (c(Q502895),P40,Q4723)
action union
action filter_type
action find_reverse
entity Q721509
relation P40
type Q502895
action filter_type
action find_reverse
entity Q4723
relation P40
type Q502895
[ANSWER] have Philipe de Croÿ, Duke of Aerschot and Charles II de Croÿ as a child
[{'concept': 'Q502895'}, 'P40', 'Q721509'] [{'concept': 'Q502895'}, 'P40', 'Q4723']
SELECT DISTINCT ?g WHERE { ?g property:P40 ?o . VALUES ( ?o ) { ( resource:Q721509 ) ( resource:Q4723 ) } }
Philippe II de Croÿ
Philippe II de Croÿ have Philipe de Croÿ, Duke of Aerschot and Charles II de Croÿ as a child
Philippe II de Croÿ
action union
action filter_type
action find_reverse
entity Philipe de Croÿ, Duke of Aerschot
relation child
type common name
action filter_type
action find_reverse
entity Charles II de Croÿ
relation child
type common name
[{'concept': 'common name'}, 'child', 'Philipe de Croÿ, Duke of Aerschot'] [{'concept': 'common name'}, 'child', 'Charles II de Croÿ']
SELECT DISTINCT ?g WHERE { ?g property:child ?o . VALUES ( ?o ) { ( resource:Philipe_de_Croÿ,_Duke_of_Aerschot ) ( resource:Charles_II_de_Croÿ ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q935822
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q935822)
action filter_type
action find
entity Q935822
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q935822']
SELECT DISTINCT ?y WHERE { resource:Q935822 property:P26 ?y . ?y rdf:type ontology:Q502895 }
Philippe II de Croÿ
action filter_type
action find
entity Philippe II de Croÿ
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Philippe II de Croÿ']
SELECT DISTINCT ?y WHERE { resource:Philippe_II_de_Croÿ property:spouse ?y . ?y rdf:type ontology:common_name }
[]
common name
Q1993206
SYSTEM
Anna of Lorraine
Q1993206
(c(Q502895),P26,Q935822)
action filter_type
action find
entity Q935822
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q935822']
SELECT DISTINCT ?y WHERE { resource:Q935822 property:P26 ?y . ?y rdf:type ontology:Q502895 }
Anna of Lorraine
Anna of Lorraine has that one as spouse
Anna of Lorraine
action filter_type
action find
entity Philippe II de Croÿ
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Philippe II de Croÿ']
SELECT DISTINCT ?y WHERE { resource:Philippe_II_de_Croÿ property:spouse ?y . ?y rdf:type ontology:common_name }
[]
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 231 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 231
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?c ) WHERE { ?w rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?w } GROUP BY ?w } . FILTER ( ?c <= 231 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 231
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?c ) WHERE { ?w rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?w } GROUP BY ?w } . FILTER ( ?c <= 231 ) }
[]
musical instrument common name
SYSTEM
56
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 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 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 231
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?c ) WHERE { ?w rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?w } GROUP BY ?w } . FILTER ( ?c <= 231 ) }
lyre acoustic bass guitar Body percussion 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 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 drum Kayamb Paraguayan harp
56
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 231
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?c ) WHERE { ?w rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?w } GROUP BY ?w } . FILTER ( ?c <= 231 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1993206
P22
Q502895
USER
Which male person was the parent of Anna of Lorraine ?
(Q1993206,P22,c(Q502895))
action filter_type
action find
entity Q1993206
relation P22
type Q502895
['Q1993206', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1993206 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Anna of Lorraine
action filter_type
action find
entity Anna of Lorraine
relation father
type common name
['Anna of Lorraine', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Anna_of_Lorraine property:father ?s . ?s rdf:type ontology:common_name }
[]
common name
Q590487
SYSTEM
Antoine, Duke of Lorraine
Q590487
(Q1993206,P22,c(Q502895))
action filter_type
action find
entity Q1993206
relation P22
type Q502895
[ANSWER] was the parent of Anna of Lorraine
['Q1993206', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1993206 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Antoine, Duke of Lorraine
Antoine, Duke of Lorraine was the parent of Anna of Lorraine
Antoine, Duke of Lorraine
action filter_type
action find
entity Anna of Lorraine
relation father
type common name
['Anna of Lorraine', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Anna_of_Lorraine property:father ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q590487
P53
Q13417114
USER
Which noble family did that person belong to ?
(Q590487,P53,c(Q13417114))
action filter_type
action find
entity Q590487
relation P53
type Q13417114
['Q590487', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q13417114 . resource:Q590487 property:P53 ?z }
Antoine, Duke of Lorraine
action filter_type
action find
entity Antoine, Duke of Lorraine
relation noble family
type noble family
['Antoine, Duke of Lorraine', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:noble_family . resource:Antoine,_Duke_of_Lorraine property:noble_family ?z }
[]
noble family
Q2638011
SYSTEM
House of Lorraine
Q2638011
(Q590487,P53,c(Q13417114))
action filter_type
action find
entity Q590487
relation P53
type Q13417114
That person belonged to [ANSWER]
['Q590487', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q13417114 . resource:Q590487 property:P53 ?z }
House of Lorraine
That person belonged to House of Lorraine
House of Lorraine
action filter_type
action find
entity Antoine, Duke of Lorraine
relation noble family
type noble family
['Antoine, Duke of Lorraine', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:noble_family . resource:Antoine,_Duke_of_Lorraine property:noble_family ?z }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q567387
Q13417114
USER
And also tell me about John I, Duke of Saxony?
(Q567387,P53,c(Q13417114))
action filter_type
action find
entity Q567387
relation P53
type Q13417114
['Q567387', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q13417114 . resource:Q567387 property:P53 ?r }
John I, Duke of Saxony
action filter_type
action find
entity John I, Duke of Saxony
relation noble family
type noble family
['John I, Duke of Saxony', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:noble_family . resource:John_I,_Duke_of_Saxony property:noble_family ?r }
[]
noble family
Q168352
SYSTEM
House of Ascania
Q168352
(Q567387,P53,c(Q13417114))
action filter_type
action find
entity Q567387
relation P53
type Q13417114
[ANSWER]
['Q567387', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q13417114 . resource:Q567387 property:P53 ?r }
House of Ascania
House of Ascania
action filter_type
action find
entity John I, Duke of Saxony
relation noble family
type noble family
['John I, Duke of Saxony', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:noble_family . resource:John_I,_Duke_of_Saxony property:noble_family ?r }
[]