Simple Question (Direct)
Simple Question
Q712146
P53
Q8436
USER
Which family did Charles Cavendish, 3rd Baron Chesham belong to ?
(Q712146,P53,c(Q8436))
action filter_type
action find
entity Q712146
relation P53
type Q8436
['Q712146', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?n WHERE { resource:Q712146 property:P53 ?n . ?n rdf:type ontology:Q8436 }
Charles Cavendish, 3rd Baron Chesham
action filter_type
action find
entity Charles Cavendish, 3rd Baron Chesham
relation noble family
type family
['Charles Cavendish, 3rd Baron Chesham', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?n WHERE { resource:Charles_Cavendish,_3rd_Baron_Chesham property:noble_family ?n . ?n rdf:type ontology:family }
[]
family
Q1960463
SYSTEM
House of Cavendish
Q1960463
(Q712146,P53,c(Q8436))
action filter_type
action find
entity Q712146
relation P53
type Q8436
[ANSWER] Charles Cavendish, 3rd Baron Chesham belonged to
['Q712146', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?n WHERE { resource:Q712146 property:P53 ?n . ?n rdf:type ontology:Q8436 }
House of Cavendish
House of Cavendish Charles Cavendish, 3rd Baron Chesham belonged to
House of Cavendish
action filter_type
action find
entity Charles Cavendish, 3rd Baron Chesham
relation noble family
type family
['Charles Cavendish, 3rd Baron Chesham', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?n WHERE { resource:Charles_Cavendish,_3rd_Baron_Chesham property:noble_family ?n . ?n rdf:type ontology:family }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q712146
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q1960463,P102,c(Q7210356))
action filter_type
action find
entity Q712146
relation P102
type Q7210356
['Q1960463', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q712146 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Charles Cavendish, 3rd Baron Chesham
action filter_type
action find
entity Charles Cavendish, 3rd Baron Chesham
relation member of political party
type political organization
['House of Cavendish', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Cavendish,_3rd_Baron_Chesham property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q1960463,P102,c(Q7210356))
action filter_type
action find
entity Q712146
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q1960463', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q712146 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Conservative Party
That person is affiliated with Conservative Party
Conservative Party
action filter_type
action find
entity Charles Cavendish, 3rd Baron Chesham
relation member of political party
type political organization
['House of Cavendish', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Cavendish,_3rd_Baron_Chesham property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q712146
P1412
Q34770
USER
Which language is spoken by that person ?
(Q9626,P1412,c(Q34770))
action filter_type
action find
entity Q712146
relation P1412
type Q34770
['Q9626', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q712146 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Charles Cavendish, 3rd Baron Chesham
action filter_type
action find
entity Charles Cavendish, 3rd Baron Chesham
relation languages spoken, written or signed
type language
['Conservative Party', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Charles_Cavendish,_3rd_Baron_Chesham property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q9626,P1412,c(Q34770))
action filter_type
action find
entity Q712146
relation P1412
type Q34770
Are [ANSWER] is spoken by that person
['Q9626', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q712146 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
English
Are English is spoken by that person
English
action filter_type
action find
entity Charles Cavendish, 3rd Baron Chesham
relation languages spoken, written or signed
type language
['Conservative Party', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Charles_Cavendish,_3rd_Baron_Chesham property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q35726
P364
Q34770 Q15416 Q838948
USER
Which languages are the original languages of creation of greater number of television programs and works of art than Etruscan ?
(c(Q15416)|c(Q838948),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q35726
relation P364
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?l WHERE { { ?i property:P364 ?l . ?l rdf:type ontology:Q34770 . ?i rdf:type ontology:Q15416 } UNION { ?l rdf:type ontology:Q34770 . ?i rdf:type ontology:Q838948 . ?i property:P364 ?l } } GROUP BY ?l } . FILTER ( ?m > ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { ?t property:P364 resource:Q35726 . { { ?t rdf:type ontology:Q15416 } UNION { ?t rdf:type ontology:Q838948 } } } } }
Etruscan
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
action count
action filter_multi_types
action find_reverse
entity Etruscan
relation original language of work
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?l WHERE { { ?i property:original_language_of_work ?l . ?l rdf:type ontology:language . ?i rdf:type ontology:television_program } UNION { ?l rdf:type ontology:language . ?i rdf:type ontology:work_of_art . ?i property:original_language_of_work ?l } } GROUP BY ?l } . FILTER ( ?m > ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { ?t property:original_language_of_work resource:Etruscan . { { ?t rdf:type ontology:television_program } UNION { ?t rdf:type ontology:work_of_art } } } } }
[]
language television program work of art
Q1860 Q397 Q9056
SYSTEM
English, Latin, Czech
Q1860 Q8785 Q1321 Q397 Q10862919 Q9056 Q8752 Q652 Q3110592
(c(Q15416)|c(Q838948),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q35726
relation P364
type Q15416
type Q838948
[ANSWERS] are the original languages of creation of greater number of television programs and works of art than Etruscan
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?l WHERE { { ?i property:P364 ?l . ?l rdf:type ontology:Q34770 . ?i rdf:type ontology:Q15416 } UNION { ?l rdf:type ontology:Q34770 . ?i rdf:type ontology:Q838948 . ?i property:P364 ?l } } GROUP BY ?l } . FILTER ( ?m > ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { ?t property:P364 resource:Q35726 . { { ?t rdf:type ontology:Q15416 } UNION { ?t rdf:type ontology:Q838948 } } } } }
English Armenian Spanish Latin Tibetan language Czech Basque Italian written Chinese
English, Latin and Czech are the original languages of creation of greater number of television programs and works of art than Etruscan
English Latin Czech
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
action count
action filter_multi_types
action find_reverse
entity Etruscan
relation original language of work
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?l WHERE { { ?i property:original_language_of_work ?l . ?l rdf:type ontology:language . ?i rdf:type ontology:television_program } UNION { ?l rdf:type ontology:language . ?i rdf:type ontology:work_of_art . ?i property:original_language_of_work ?l } } GROUP BY ?l } . FILTER ( ?m > ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { ?t property:original_language_of_work resource:Etruscan . { { ?t rdf:type ontology:television_program } UNION { ?t rdf:type ontology:work_of_art } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q13211
P364
Q34770 Q15416 Q838948
USER
And how about Ruthenian?
(c(Q15416)|c(Q838948),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q13211
relation P364
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P364 resource:Q13211 . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?l rdf:type ?i } GROUP BY ?e } }
Ruthenian
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
action count
action filter_multi_types
action find_reverse
entity Ruthenian
relation original language of work
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:original_language_of_work resource:Ruthenian . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:television_program ) ( ontology:work_of_art ) } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?l rdf:type ?i } GROUP BY ?e } }
[]
language television program work of art
Q1860 Q397 Q9056
SYSTEM
English, Latin, Czech
Q1860 Q8785 Q1321 Q397 Q10862919 Q9056 Q8752 Q652 Q3110592
(c(Q15416)|c(Q838948),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q13211
relation P364
type Q15416
type Q838948
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P364 resource:Q13211 . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?l rdf:type ?i } GROUP BY ?e } }
English Armenian Spanish Latin Tibetan language Czech Basque Italian written Chinese
English Latin Czech
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
action count
action filter_multi_types
action find_reverse
entity Ruthenian
relation original language of work
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:original_language_of_work resource:Ruthenian . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:television_program ) ( ontology:work_of_art ) } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?l rdf:type ?i } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q34119 Q13211
P282
Q9779
USER
Which alphabets are the writing systems of Ruthenian or Tuvan known as ?
OR((Q13211,P282,c(Q9779)), (Q34119,P282,c(Q9779)))
action filter_type
action union
action find
entity Q13211
relation P282
action find
entity Q34119
relation P282
type Q9779
{'OR': [['Q13211', 'P282', {'concept': 'Q9779'}], ['Q34119', 'P282', {'concept': 'Q9779'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:P282 ?v . VALUES ( ?j ) { ( resource:Q13211 ) ( resource:Q34119 ) } } . ?v rdf:type ontology:Q9779 }
Tuvan Ruthenian
action filter_type
action union
action find
entity Ruthenian
relation writing system
action find
entity Tuvan
relation writing system
type alphabet
{'OR': [['Ruthenian', 'writing system', {'concept': 'alphabet'}], ['Tuvan', 'writing system', {'concept': 'alphabet'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:writing_system ?v . VALUES ( ?j ) { ( resource:Ruthenian ) ( resource:Tuvan ) } } . ?v rdf:type ontology:alphabet }
[]
alphabet
Q8209
SYSTEM
Cyrillic script
Q8209
OR((Q13211,P282,c(Q9779)), (Q34119,P282,c(Q9779)))
action filter_type
action union
action find
entity Q13211
relation P282
action find
entity Q34119
relation P282
type Q9779
The writing systems of Ruthenian or Tuvan are known as [ANSWER]
{'OR': [['Q13211', 'P282', {'concept': 'Q9779'}], ['Q34119', 'P282', {'concept': 'Q9779'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:P282 ?v . VALUES ( ?j ) { ( resource:Q13211 ) ( resource:Q34119 ) } } . ?v rdf:type ontology:Q9779 }
Cyrillic script
The writing systems of Ruthenian or Tuvan are known as Cyrillic script
Cyrillic script
action filter_type
action union
action find
entity Ruthenian
relation writing system
action find
entity Tuvan
relation writing system
type alphabet
{'OR': [['Ruthenian', 'writing system', {'concept': 'alphabet'}], ['Tuvan', 'writing system', {'concept': 'alphabet'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:writing_system ?v . VALUES ( ?j ) { ( resource:Ruthenian ) ( resource:Tuvan ) } } . ?v rdf:type ontology:alphabet }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8209
P138
Q502895
USER
What is that alphabet named after ?
(Q8209,P138,c(Q502895))
action filter_type
action find
entity Q8209
relation P138
type Q502895
['Q8209', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q8209 property:P138 ?l }
Cyrillic script
action filter_type
action find
entity Cyrillic script
relation named after
type common name
['Cyrillic script', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Cyrillic_script property:named_after ?l }
[]
common name
Q351026
SYSTEM
Saint Cyril the Philosopher
Q351026
(Q8209,P138,c(Q502895))
action filter_type
action find
entity Q8209
relation P138
type Q502895
That alphabet named after is [ANSWER]
['Q8209', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q8209 property:P138 ?l }
Saint Cyril the Philosopher
That alphabet named after is Saint Cyril the Philosopher
Saint Cyril the Philosopher
action filter_type
action find
entity Cyrillic script
relation named after
type common name
['Cyrillic script', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Cyrillic_script property:named_after ?l }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18764002 Q712146
P27
Q15617994
USER
Which administrative territories are Charles Cavendish, 3rd Baron Chesham or Hans F. De Wit an inhabitant of ?
OR((Q712146,P27,c(Q15617994)), (Q18764002,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q712146
relation P27
action find
entity Q18764002
relation P27
type Q15617994
{'OR': [['Q712146', 'P27', {'concept': 'Q15617994'}], ['Q18764002', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?a ) { ( resource:Q712146 ) ( resource:Q18764002 ) } . ?a property:P27 ?k } . ?k rdf:type ontology:Q15617994 }
Hans F. De Wit Charles Cavendish, 3rd Baron Chesham
action filter_type
action union
action find
entity Charles Cavendish, 3rd Baron Chesham
relation country of citizenship
action find
entity Hans F. De Wit
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Charles Cavendish, 3rd Baron Chesham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hans F. De Wit', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?a ) { ( resource:Charles_Cavendish,_3rd_Baron_Chesham ) ( resource:Hans_F._De_Wit ) } . ?a property:country_of_citizenship ?k } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q145
SYSTEM
Kingdom of the Netherlands, United Kingdom
Q29999 Q145
OR((Q712146,P27,c(Q15617994)), (Q18764002,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q712146
relation P27
action find
entity Q18764002
relation P27
type Q15617994
The [ANSWERS] are Charles Cavendish, 3rd Baron Chesham or Hans F. De Wit an inhabitant of
{'OR': [['Q712146', 'P27', {'concept': 'Q15617994'}], ['Q18764002', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?a ) { ( resource:Q712146 ) ( resource:Q18764002 ) } . ?a property:P27 ?k } . ?k rdf:type ontology:Q15617994 }
Kingdom of the Netherlands United Kingdom
The Kingdom of the Netherlands and United Kingdom are Charles Cavendish, 3rd Baron Chesham or Hans F. De Wit an inhabitant of
Kingdom of the Netherlands United Kingdom
action filter_type
action union
action find
entity Charles Cavendish, 3rd Baron Chesham
relation country of citizenship
action find
entity Hans F. De Wit
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Charles Cavendish, 3rd Baron Chesham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hans F. De Wit', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?a ) { ( resource:Charles_Cavendish,_3rd_Baron_Chesham ) ( resource:Hans_F._De_Wit ) } . ?a property:country_of_citizenship ?k } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q504905 Q712146
P40
Q502895
USER
Which people have Charles Cavendish, 3rd Baron Chesham or Alberik van Gâtinais as a child ?
OR((c(Q502895),P40,Q712146), (c(Q502895),P40,Q504905))
action filter_type
action union
action find_reverse
entity Q712146
relation P40
action find_reverse
entity Q504905
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q712146'], [{'concept': 'Q502895'}, 'P40', 'Q504905']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . { { ?q property:P40 resource:Q712146 } UNION { ?q property:P40 resource:Q504905 } } }
Alberik van Gâtinais Charles Cavendish, 3rd Baron Chesham
action filter_type
action union
action find_reverse
entity Charles Cavendish, 3rd Baron Chesham
relation child
action find_reverse
entity Alberik van Gâtinais
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Charles Cavendish, 3rd Baron Chesham'], [{'concept': 'common name'}, 'child', 'Alberik van Gâtinais']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . { { ?q property:child resource:Charles_Cavendish,_3rd_Baron_Chesham } UNION { ?q property:child resource:Alberik_van_Gâtinais } } }
[]
common name
Q505249 Q2929506 Q16063121
SYSTEM
Godfried I van Gâtinais, Béatrice de Mâcon, William Cavendish, 2nd Baron Chesham
Q505249 Q2929506 Q16063121
OR((c(Q502895),P40,Q712146), (c(Q502895),P40,Q504905))
action filter_type
action union
action find_reverse
entity Q712146
relation P40
action find_reverse
entity Q504905
relation P40
type Q502895
[ANSWERS]
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q712146'], [{'concept': 'Q502895'}, 'P40', 'Q504905']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . { { ?q property:P40 resource:Q712146 } UNION { ?q property:P40 resource:Q504905 } } }
Godfried I van Gâtinais Béatrice de Mâcon William Cavendish, 2nd Baron Chesham
Godfried I van Gâtinais, Béatrice de Mâcon and William Cavendish, 2nd Baron Chesham have Charles Cavendish, 3rd Baron Chesham or Alberik van Gâtinais as a child
Godfried I van Gâtinais Béatrice de Mâcon William Cavendish, 2nd Baron Chesham
action filter_type
action union
action find_reverse
entity Charles Cavendish, 3rd Baron Chesham
relation child
action find_reverse
entity Alberik van Gâtinais
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Charles Cavendish, 3rd Baron Chesham'], [{'concept': 'common name'}, 'child', 'Alberik van Gâtinais']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . { { ?q property:child resource:Charles_Cavendish,_3rd_Baron_Chesham } UNION { ?q property:child resource:Alberik_van_Gâtinais } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16063121
P39
Q12737077
USER
Which occupation was a position occupied by William Cavendish, 2nd Baron Chesham ?
(Q16063121,P39,c(Q12737077))
action filter_type
action find
entity Q16063121
relation P39
type Q12737077
['Q16063121', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q16063121 property:P39 ?h }
William Cavendish, 2nd Baron Chesham
action filter_type
action find
entity William Cavendish, 2nd Baron Chesham
relation position held
type occupation
['William Cavendish, 2nd Baron Chesham', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:William_Cavendish,_2nd_Baron_Chesham property:position_held ?h }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q16063121,P39,c(Q12737077))
action filter_type
action find
entity Q16063121
relation P39
type Q12737077
[ANSWER] was a position occupied by William Cavendish, 2nd Baron Chesham
['Q16063121', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q16063121 property:P39 ?h }
Member of Parliament in the United Kingdom
Member of Parliament in the United Kingdom was a position occupied by William Cavendish, 2nd Baron Chesham
Member of Parliament in the United Kingdom
action filter_type
action find
entity William Cavendish, 2nd Baron Chesham
relation position held
type occupation
['William Cavendish, 2nd Baron Chesham', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:William_Cavendish,_2nd_Baron_Chesham property:position_held ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1849002
Q12737077
USER
And also tell me about Cornelis Leonardus Bressers?
(Q1849002,P39,c(Q12737077))
action filter_type
action find
entity Q1849002
relation P39
type Q12737077
['Q1849002', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q1849002 property:P39 ?h }
Cornelis Leonardus Bressers
action filter_type
action find
entity Cornelis Leonardus Bressers
relation position held
type occupation
['Cornelis Leonardus Bressers', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Cornelis_Leonardus_Bressers property:position_held ?h }
[]
occupation
Q19305384
SYSTEM
member of the Senate of the Netherlands
Q19305384
(Q1849002,P39,c(Q12737077))
action filter_type
action find
entity Q1849002
relation P39
type Q12737077
[ANSWER]
['Q1849002', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q1849002 property:P39 ?h }
member of the Senate of the Netherlands
member of the Senate of the Netherlands
action filter_type
action find
entity Cornelis Leonardus Bressers
relation position held
type occupation
['Cornelis Leonardus Bressers', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Cornelis_Leonardus_Bressers property:position_held ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16063121
P21
Q290
USER
What is the sex of William Cavendish, 2nd Baron Chesham ?
(Q16063121,P21,c(Q290))
action filter_type
action find
entity Q16063121
relation P21
type Q290
['Q16063121', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q16063121 property:P21 ?n . ?n rdf:type ontology:Q290 }
William Cavendish, 2nd Baron Chesham
action filter_type
action find
entity William Cavendish, 2nd Baron Chesham
relation gender
type sex
['William Cavendish, 2nd Baron Chesham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:William_Cavendish,_2nd_Baron_Chesham property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16063121,P21,c(Q290))
action filter_type
action find
entity Q16063121
relation P21
type Q290
The sex of William Cavendish , 2nd Baron Chesham is the [ANSWER]
['Q16063121', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q16063121 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
The sex of William Cavendish , 2nd Baron Chesham is the male
male
action filter_type
action find
entity William Cavendish, 2nd Baron Chesham
relation gender
type sex
['William Cavendish, 2nd Baron Chesham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:William_Cavendish,_2nd_Baron_Chesham property:gender ?n . ?n rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q28513
P27
Q502895
USER
How many people are a native of United Kingdom and Austria-Hungary ?
(c(Q502895),P27,Q145) (c(Q502895),P27,Q28513)
action count
action intersection
action filter_type
action find_reverse
entity Q145
relation P27
type Q502895
action filter_type
action find_reverse
entity Q28513
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q145'] [{'concept': 'Q502895'}, 'P27', 'Q28513']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P27 resource:Q145 . ?v rdf:type ontology:Q502895 . ?v property:P27 resource:Q28513 . ?v rdf:type ontology:Q502895 }
United Kingdom Austria-Hungary
action count
action intersection
action filter_type
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
action filter_type
action find_reverse
entity Austria-Hungary
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'United Kingdom'] [{'concept': 'common name'}, 'country of citizenship', 'Austria-Hungary']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:country_of_citizenship resource:United_Kingdom . ?v rdf:type ontology:common_name . ?v property:country_of_citizenship resource:Austria-Hungary . ?v rdf:type ontology:common_name }
[]
common name
SYSTEM
4
Q3557487 Q89199 Q82999 Q78491
(c(Q502895),P27,Q145) (c(Q502895),P27,Q28513)
action count
action intersection
action filter_type
action find_reverse
entity Q145
relation P27
type Q502895
action filter_type
action find_reverse
entity Q28513
relation P27
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q145'] [{'concept': 'Q502895'}, 'P27', 'Q28513']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P27 resource:Q145 . ?v rdf:type ontology:Q502895 . ?v property:P27 resource:Q28513 . ?v rdf:type ontology:Q502895 }
Vic Oliver Wolfgang Suschitzky Melanie Klein Stefan Zweig
4
action count
action intersection
action filter_type
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
action filter_type
action find_reverse
entity Austria-Hungary
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'United Kingdom'] [{'concept': 'common name'}, 'country of citizenship', 'Austria-Hungary']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:country_of_citizenship resource:United_Kingdom . ?v rdf:type ontology:common_name . ?v property:country_of_citizenship resource:Austria-Hungary . ?v rdf:type ontology:common_name }
[]