Simple Question (Direct)
Simple Question
Q12005508
P7
Q502895
USER
Who have Terje Berg as their sibling ?
(Q12005508,P7,c(Q502895))
action filter_type
action find
entity Q12005508
relation P7
type Q502895
['Q12005508', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q12005508 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Terje Berg
action filter_type
action find
entity Terje Berg
relation brother
type common name
['Terje Berg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Terje_Berg property:brother ?w . ?w rdf:type ontology:common_name }
[]
common name
Q3622601 Q2779396 Q2542111
SYSTEM
Arild Berg, Runar Berg, Ørjan Berg
Q3622601 Q2779396 Q2542111
(Q12005508,P7,c(Q502895))
action filter_type
action find
entity Q12005508
relation P7
type Q502895
[ANSWERS] have Terje Berg as their sibling
['Q12005508', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q12005508 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Arild Berg Runar Berg Ørjan Berg
Arild Berg, Runar Berg and Ørjan Berg have Terje Berg as their sibling
Arild Berg Runar Berg Ørjan Berg
action filter_type
action find
entity Terje Berg
relation brother
type common name
['Terje Berg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Terje_Berg property:brother ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12005508
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Terje Berg ?
(Q12005508,P27,c(Q15617994))
action filter_type
action find
entity Q12005508
relation P27
type Q15617994
['Q12005508', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q12005508 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Terje Berg
action filter_type
action find
entity Terje Berg
relation country of citizenship
type designation for an administrative territorial entity
['Terje Berg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Terje_Berg property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q12005508,P27,c(Q15617994))
action filter_type
action find
entity Q12005508
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Terje Berg
['Q12005508', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q12005508 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Norway
Norway is the country of citizenship of Terje Berg
Norway
action filter_type
action find
entity Terje Berg
relation country of citizenship
type designation for an administrative territorial entity
['Terje Berg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Terje_Berg property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2851038
Q15617994
USER
And also tell me about Ester Naomi Perquin?
(Q2851038,P27,c(Q15617994))
action filter_type
action find
entity Q2851038
relation P27
type Q15617994
['Q2851038', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q2851038 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Ester Naomi Perquin
action filter_type
action find
entity Ester Naomi Perquin
relation country of citizenship
type designation for an administrative territorial entity
['Ester Naomi Perquin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Ester_Naomi_Perquin property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999
SYSTEM
Kingdom of the Netherlands
Q29999
(Q2851038,P27,c(Q15617994))
action filter_type
action find
entity Q2851038
relation P27
type Q15617994
[ANSWER]
['Q2851038', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q2851038 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Kingdom of the Netherlands
Kingdom of the Netherlands
action filter_type
action find
entity Ester Naomi Perquin
relation country of citizenship
type designation for an administrative territorial entity
['Ester Naomi Perquin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Ester_Naomi_Perquin property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P825
Q502895 Q207628 Q482994
USER
Which people are exactly 1 musical compositions or albums dedicated to ?
(c(Q207628)|c(Q482994),P825,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action find_reverse_tuple_counts
relation P825
type Q502895
type Q482994
value 1
[[{'concept': 'Q207628'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:Q207628 ) ( ontology:Q482994 ) } . ?b rdf:type ?c } GROUP BY ?y } . FILTER ( ?x = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action find_reverse_tuple_counts
relation dedicated to
type common name
type album
value 1
[[{'concept': 'musical composition'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:musical_composition ) ( ontology:album ) } . ?b rdf:type ?c } GROUP BY ?y } . FILTER ( ?x = 1 ) }
[]
common name musical composition album
Q41309 Q51056 Q150767
SYSTEM
Franz Liszt, Franz Joseph I of Austria, Benjamin Britten
Q249719 Q85210 Q150767 Q1948037 Q173061 Q888326 Q44039 Q1666 Q541634 Q160257 Q6918007 Q51056 Q472635 Q92467 Q538335 Q179858 Q41309
(c(Q207628)|c(Q482994),P825,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action find_reverse_tuple_counts
relation P825
type Q502895
type Q482994
value 1
[ANSWERS]
[[{'concept': 'Q207628'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:Q207628 ) ( ontology:Q482994 ) } . ?b rdf:type ?c } GROUP BY ?y } . FILTER ( ?x = 1 ) }
Yui Karl Ritter von Stremayr Benjamin Britten Moritz Reichsgraf von Fries Syd Barrett Bob Wills Ludwig II of Bavaria Jacques Brel Bobby Bland Wanda Landowska Motoharu Sano Franz Joseph I of Austria Gustav, Prince of Vasa Theodor Avé-Lallemant Marianne Kirchgessner Urho Kekkonen Franz Liszt
Which people are exactly 1 musical compositions or albums dedicated to
Franz Liszt Franz Joseph I of Austria Benjamin Britten
action equal
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action find_reverse_tuple_counts
relation dedicated to
type common name
type album
value 1
[[{'concept': 'musical composition'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?x ) WHERE { VALUES ( ?c ) { ( ontology:musical_composition ) ( ontology:album ) } . ?b rdf:type ?c } GROUP BY ?y } . FILTER ( ?x = 1 ) }
[]