Simple Question (Direct)
Simple Question
Q916245
P102
Q7278
USER
Which political party is Brigitte Erler a member of ?
(Q916245,P102,c(Q7278))
action filter_type
action find
entity Q916245
relation P102
type Q7278
['Q916245', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?y WHERE { resource:Q916245 property:P102 ?y . ?y rdf:type ontology:Q7278 }
Brigitte Erler
action filter_type
action find
entity Brigitte Erler
relation member of political party
type political party
['Brigitte Erler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?y WHERE { resource:Brigitte_Erler property:member_of_political_party ?y . ?y rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q916245,P102,c(Q7278))
action filter_type
action find
entity Q916245
relation P102
type Q7278
Party [ANSWER] is Brigitte Erler a member of
['Q916245', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?y WHERE { resource:Q916245 property:P102 ?y . ?y rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Brigitte Erler a member of
Social Democratic Party of Germany
action filter_type
action find
entity Brigitte Erler
relation member of political party
type political party
['Brigitte Erler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?y WHERE { resource:Brigitte_Erler property:member_of_political_party ?y . ?y rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q916245
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q49768,P39,c(Q12737077))
action filter_type
action find
entity Q916245
relation P39
type Q12737077
['Q49768', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q916245 property:P39 ?u }
Brigitte Erler
action filter_type
action find
entity Brigitte Erler
relation position held
type occupation
['Social Democratic Party of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Brigitte_Erler property:position_held ?u }
[]
occupation
Q1939555
SYSTEM
member of the German Bundestag
Q1939555
(Q49768,P39,c(Q12737077))
action filter_type
action find
entity Q916245
relation P39
type Q12737077
A [ANSWER] was a position occupied by that person
['Q49768', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q916245 property:P39 ?u }
member of the German Bundestag
A member of the German Bundestag was a position occupied by that person
member of the German Bundestag
action filter_type
action find
entity Brigitte Erler
relation position held
type occupation
['Social Democratic Party of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Brigitte_Erler property:position_held ?u }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5442372 Q916245
P937 P20
Q56061
USER
Which administrative territories are the work locations of Brigitte Erler or did the demise of Felix du Plessis occur ?
OR((Q916245,P937,c(Q56061)), (Q5442372,P20,c(Q56061)))
action filter_type
action union
action find
entity Q916245
relation P937
action find
entity Q5442372
relation P20
type Q56061
{'OR': [['Q916245', 'P937', {'concept': 'Q56061'}], ['Q5442372', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q916245 property:P937 ?i } UNION { resource:Q5442372 property:P20 ?i } } . ?i rdf:type ontology:Q56061 }
Felix du Plessis Brigitte Erler
action filter_type
action union
action find
entity Brigitte Erler
relation work location
action find
entity Felix du Plessis
relation place of death
type administrative territorial entity
{'OR': [['Brigitte Erler', 'work location', {'concept': 'administrative territorial entity'}], ['Felix du Plessis', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Brigitte_Erler property:work_location ?i } UNION { resource:Felix_du_Plessis property:place_of_death ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2327720 Q586
SYSTEM
Stilfontein, Bonn
Q2327720 Q586
OR((Q916245,P937,c(Q56061)), (Q5442372,P20,c(Q56061)))
action filter_type
action union
action find
entity Q916245
relation P937
action find
entity Q5442372
relation P20
type Q56061
[ANSWERS] are the work locations of Brigitte Erler or did the demise of Felix du Plessis occur
{'OR': [['Q916245', 'P937', {'concept': 'Q56061'}], ['Q5442372', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q916245 property:P937 ?i } UNION { resource:Q5442372 property:P20 ?i } } . ?i rdf:type ontology:Q56061 }
Stilfontein Bonn
Stilfontein and Bonn are the work locations of Brigitte Erler or did the demise of Felix du Plessis occur
Stilfontein Bonn
action filter_type
action union
action find
entity Brigitte Erler
relation work location
action find
entity Felix du Plessis
relation place of death
type administrative territorial entity
{'OR': [['Brigitte Erler', 'work location', {'concept': 'administrative territorial entity'}], ['Felix du Plessis', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Brigitte_Erler property:work_location ?i } UNION { resource:Felix_du_Plessis property:place_of_death ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q9077
P674
Q502895 Q7725634 Q277759
USER
Which people plays a role in more number of literary works or book series than Moses ?
(c(Q7725634)|c(Q277759),P674,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q9077
relation P674
type Q7725634
type Q277759
[[{'concept': 'Q7725634'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?c WHERE { { ?q property:P674 ?c . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q7725634 } UNION { ?q property:P674 ?c . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q277759 } } GROUP BY ?c } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P674 resource:Q9077 . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q277759 ) ( ontology:Q7725634 ) } } } } }
Moses
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action find_reverse_tuple_counts
relation characters
type common name
type book series
action count
action filter_multi_types
action find_reverse
entity Moses
relation characters
type literary work
type book series
[[{'concept': 'literary work'}, {'concept': 'book series'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?c WHERE { { ?q property:characters ?c . ?c rdf:type ontology:common_name . ?q rdf:type ontology:literary_work } UNION { ?q property:characters ?c . ?c rdf:type ontology:common_name . ?q rdf:type ontology:book_series } } GROUP BY ?c } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:characters resource:Moses . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:book_series ) ( ontology:literary_work ) } } } } }
[]
common name literary work book series
Q9960 Q193660 Q39259
SYSTEM
Ronald Reagan, Ramon Llull, Recep Tayyip Erdoğan
Q2458567 Q207535 Q8462 Q638973 Q109860 Q106077 Q193660 Q360798 Q39259 Q9960
(c(Q7725634)|c(Q277759),P674,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q9077
relation P674
type Q7725634
type Q277759
[ANSWERS] play a role in more number of literary works or book series than Moses
[[{'concept': 'Q7725634'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?c WHERE { { ?q property:P674 ?c . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q7725634 } UNION { ?q property:P674 ?c . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q277759 } } GROUP BY ?c } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P674 resource:Q9077 . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q277759 ) ( ontology:Q7725634 ) } } } } }
François Bonivard Roland Timur Leofric, Earl of Mercia Dagobert I Lady Godiva Ramon Llull Saint Eligius Recep Tayyip Erdoğan Ronald Reagan
Ronald Reagan, Ramon Llull and Recep Tayyip Erdoğan play a role in more number of literary works or book series than Moses
Ronald Reagan Ramon Llull Recep Tayyip Erdoğan
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action find_reverse_tuple_counts
relation characters
type common name
type book series
action count
action filter_multi_types
action find_reverse
entity Moses
relation characters
type literary work
type book series
[[{'concept': 'literary work'}, {'concept': 'book series'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?c WHERE { { ?q property:characters ?c . ?c rdf:type ontology:common_name . ?q rdf:type ontology:literary_work } UNION { ?q property:characters ?c . ?c rdf:type ontology:common_name . ?q rdf:type ontology:book_series } } GROUP BY ?c } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:characters resource:Moses . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:book_series ) ( ontology:literary_work ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6780580
P674
Q502895 Q7725634 Q277759
USER
And also tell me about Mary Raphael Slattery?
(c(Q7725634)|c(Q277759),P674,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q6780580
relation P674
type Q7725634
type Q277759
[[{'concept': 'Q7725634'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?z WHERE { { ?t property:P674 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q7725634 } UNION { ?t property:P674 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q277759 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P674 resource:Q6780580 . { VALUES ( ?g ) { ( ontology:Q277759 ) ( ontology:Q7725634 ) } . ?i rdf:type ?g } } } . FILTER ( ?m > ?p ) }
Mary Raphael Slattery
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action find_reverse_tuple_counts
relation characters
type common name
type book series
action count
action filter_multi_types
action find_reverse
entity Mary Raphael Slattery
relation characters
type literary work
type book series
[[{'concept': 'literary work'}, {'concept': 'book series'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?z WHERE { { ?t property:characters ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:literary_work } UNION { ?t property:characters ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:book_series } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:characters resource:Mary_Raphael_Slattery . { VALUES ( ?g ) { ( ontology:book_series ) ( ontology:literary_work ) } . ?i rdf:type ?g } } } . FILTER ( ?m > ?p ) }
[]
common name literary work book series
Q9960 Q193660 Q39259
SYSTEM
Ronald Reagan, Ramon Llull, Recep Tayyip Erdoğan
Q2458567 Q207535 Q8462 Q638973 Q109860 Q106077 Q193660 Q360798 Q39259 Q9960
(c(Q7725634)|c(Q277759),P674,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q6780580
relation P674
type Q7725634
type Q277759
[ANSWERS]
[[{'concept': 'Q7725634'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?z WHERE { { ?t property:P674 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q7725634 } UNION { ?t property:P674 ?z . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q277759 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P674 resource:Q6780580 . { VALUES ( ?g ) { ( ontology:Q277759 ) ( ontology:Q7725634 ) } . ?i rdf:type ?g } } } . FILTER ( ?m > ?p ) }
François Bonivard Roland Timur Leofric, Earl of Mercia Dagobert I Lady Godiva Ramon Llull Saint Eligius Recep Tayyip Erdoğan Ronald Reagan
Ronald Reagan Ramon Llull Recep Tayyip Erdoğan
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action find_reverse_tuple_counts
relation characters
type common name
type book series
action count
action filter_multi_types
action find_reverse
entity Mary Raphael Slattery
relation characters
type literary work
type book series
[[{'concept': 'literary work'}, {'concept': 'book series'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?z WHERE { { ?t property:characters ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:literary_work } UNION { ?t property:characters ?z . ?z rdf:type ontology:common_name . ?t rdf:type ontology:book_series } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:characters resource:Mary_Raphael_Slattery . { VALUES ( ?g ) { ( ontology:book_series ) ( ontology:literary_work ) } . ?i rdf:type ?g } } } . FILTER ( ?m > ?p ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2618666 Q5442372
P27
Q15617994
USER
Which administrative territories are Felix du Plessis or Òscar de la Riva Aguado a civilian of ?
OR((Q5442372,P27,c(Q15617994)), (Q2618666,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5442372
relation P27
action find
entity Q2618666
relation P27
type Q15617994
{'OR': [['Q5442372', 'P27', {'concept': 'Q15617994'}], ['Q2618666', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q2618666 property:P27 ?r } UNION { resource:Q5442372 property:P27 ?r } } }
Òscar de la Riva Aguado Felix du Plessis
action filter_type
action union
action find
entity Felix du Plessis
relation country of citizenship
action find
entity Òscar de la Riva Aguado
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Felix du Plessis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Òscar de la Riva Aguado', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Òscar_de_la_Riva_Aguado property:country_of_citizenship ?r } UNION { resource:Felix_du_Plessis property:country_of_citizenship ?r } } }
[]
designation for an administrative territorial entity
Q29 Q258 Q228
SYSTEM
Spain, South Africa, Andorra
Q29 Q258 Q228
OR((Q5442372,P27,c(Q15617994)), (Q2618666,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5442372
relation P27
action find
entity Q2618666
relation P27
type Q15617994
[ANSWERS] are Felix du Plessis or Òscar de la Riva Aguado a civilian of
{'OR': [['Q5442372', 'P27', {'concept': 'Q15617994'}], ['Q2618666', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q2618666 property:P27 ?r } UNION { resource:Q5442372 property:P27 ?r } } }
Spain South Africa Andorra
Spain, South Africa and Andorra are Felix du Plessis or Òscar de la Riva Aguado a civilian of
Spain South Africa Andorra
action filter_type
action union
action find
entity Felix du Plessis
relation country of citizenship
action find
entity Òscar de la Riva Aguado
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Felix du Plessis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Òscar de la Riva Aguado', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Òscar_de_la_Riva_Aguado property:country_of_citizenship ?r } UNION { resource:Felix_du_Plessis property:country_of_citizenship ?r } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q29 Q258 Q228
P194
Q1752346
USER
What assemblies are the legislative bodies for those administrative territories ?
(Q29,P194,c(Q1752346)) (Q258,P194,c(Q1752346)) (Q228,P194,c(Q1752346))
action filter_type
action find
entity prev_answer
relation P194
type Q1752346
['Q29', 'P194', {'concept': 'Q1752346'}] ['Q258', 'P194', {'concept': 'Q1752346'}] ['Q228', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1752346 . ?f property:P194 ?a . VALUES ( ?f ) { ( resource:Q29 ) ( resource:Q258 ) ( resource:Q228 ) } }
Spain South Africa Andorra
action filter_type
action find
entity prev_answer
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}] ['South Africa', 'legislative body', {'concept': 'assembly'}] ['Andorra', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:assembly . ?f property:legislative_body ?a . VALUES ( ?f ) { ( resource:Spain ) ( resource:South_Africa ) ( resource:Andorra ) } }
[]
assembly
Q219692 Q2185780 Q24824
SYSTEM
Cortes Generales, Parliament of South Africa, General Council of Andorra
Q219692 Q2185780 Q24824
(Q29,P194,c(Q1752346)) (Q258,P194,c(Q1752346)) (Q228,P194,c(Q1752346))
action filter_type
action find
entity prev_answer
relation P194
type Q1752346
The legislative bodies for those administrative territories are the [ANSWERS]
['Q29', 'P194', {'concept': 'Q1752346'}] ['Q258', 'P194', {'concept': 'Q1752346'}] ['Q228', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1752346 . ?f property:P194 ?a . VALUES ( ?f ) { ( resource:Q29 ) ( resource:Q258 ) ( resource:Q228 ) } }
Cortes Generales Parliament of South Africa General Council of Andorra
The legislative bodies for those administrative territories are the Cortes Generales, Parliament of South Africa and General Council of Andorra
Cortes Generales Parliament of South Africa General Council of Andorra
action filter_type
action find
entity prev_answer
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}] ['South Africa', 'legislative body', {'concept': 'assembly'}] ['Andorra', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:assembly . ?f property:legislative_body ?a . VALUES ( ?f ) { ( resource:Spain ) ( resource:South_Africa ) ( resource:Andorra ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q219692 Q2185780 Q24824
P194
Q15617994
USER
Which administrative territories have Cortes Generales, Parliament of South Africa and General Council of Andorra as their legislative body ?
(c(Q15617994),P194,Q219692) (c(Q15617994),P194,Q2185780) (c(Q15617994),P194,Q24824)
action union
action filter_type
action find_reverse
entity Q219692
relation P194
type Q15617994
action filter_type
action find_reverse
entity Q2185780
relation P194
type Q15617994
action filter_type
action find_reverse
entity Q24824
relation P194
type Q15617994
[{'concept': 'Q15617994'}, 'P194', 'Q219692'] [{'concept': 'Q15617994'}, 'P194', 'Q2185780'] [{'concept': 'Q15617994'}, 'P194', 'Q24824']
SELECT DISTINCT ?l WHERE { { ?l property:P194 resource:Q219692 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P194 resource:Q2185780 . ?l rdf:type ontology:Q15617994 } }
Cortes Generales Parliament of South Africa General Council of Andorra
action union
action filter_type
action find_reverse
entity Cortes Generales
relation legislative body
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Parliament of South Africa
relation legislative body
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity General Council of Andorra
relation legislative body
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Cortes Generales'] [{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Parliament of South Africa'] [{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'General Council of Andorra']
SELECT DISTINCT ?l WHERE { { ?l property:legislative_body resource:Cortes_Generales . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:legislative_body resource:Parliament_of_South_Africa . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q29 Q258 Q228
SYSTEM
Spain, South Africa, Andorra
Q29 Q258 Q228
(c(Q15617994),P194,Q219692) (c(Q15617994),P194,Q2185780) (c(Q15617994),P194,Q24824)
action union
action filter_type
action find_reverse
entity Q219692
relation P194
type Q15617994
action filter_type
action find_reverse
entity Q2185780
relation P194
type Q15617994
action filter_type
action find_reverse
entity Q24824
relation P194
type Q15617994
[ANSWERS] have Cortes Generales, Parliament of South Africa and General Council of Andorra as their legislative body
[{'concept': 'Q15617994'}, 'P194', 'Q219692'] [{'concept': 'Q15617994'}, 'P194', 'Q2185780'] [{'concept': 'Q15617994'}, 'P194', 'Q24824']
SELECT DISTINCT ?l WHERE { { ?l property:P194 resource:Q219692 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P194 resource:Q2185780 . ?l rdf:type ontology:Q15617994 } }
Spain South Africa Andorra
Spain, South Africa and Andorra have Cortes Generales, Parliament of South Africa and General Council of Andorra as their legislative body
Spain South Africa Andorra
action union
action filter_type
action find_reverse
entity Cortes Generales
relation legislative body
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Parliament of South Africa
relation legislative body
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity General Council of Andorra
relation legislative body
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Cortes Generales'] [{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Parliament of South Africa'] [{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'General Council of Andorra']
SELECT DISTINCT ?l WHERE { { ?l property:legislative_body resource:Cortes_Generales . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:legislative_body resource:Parliament_of_South_Africa . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29 Q258 Q228
P530
Q1048835
USER
Who have a diplomatic relationship with Spain, South Africa and Andorra ?
(Q29,P530,c(Q1048835)) (Q258,P530,c(Q1048835)) (Q228,P530,c(Q1048835))
action union
action filter_type
action find
entity Q29
relation P530
type Q1048835
action filter_type
action find
entity Q258
relation P530
type Q1048835
action filter_type
action find
entity Q228
relation P530
type Q1048835
['Q29', 'P530', {'concept': 'Q1048835'}] ['Q258', 'P530', {'concept': 'Q1048835'}] ['Q228', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?x property:P530 ?y . VALUES ( ?x ) { ( resource:Q29 ) ( resource:Q258 ) } }
Spain South Africa Andorra
action union
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity South Africa
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Andorra
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Africa', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Andorra', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?x property:diplomatic_relation ?y . VALUES ( ?x ) { ( resource:Spain ) ( resource:South_Africa ) } }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q408 Q183 Q183 Q408 Q16 Q183
(Q29,P530,c(Q1048835)) (Q258,P530,c(Q1048835)) (Q228,P530,c(Q1048835))
action union
action filter_type
action find
entity Q29
relation P530
type Q1048835
action filter_type
action find
entity Q258
relation P530
type Q1048835
action filter_type
action find
entity Q228
relation P530
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] have a diplomatic relationship with Spain, South Africa and Andorra
['Q29', 'P530', {'concept': 'Q1048835'}] ['Q258', 'P530', {'concept': 'Q1048835'}] ['Q228', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?x property:P530 ?y . VALUES ( ?x ) { ( resource:Q29 ) ( resource:Q258 ) } }
Australia Germany Germany Australia Canada Germany
Germany, Germany and Germany have a diplomatic relationship with Spain, South Africa and Andorra
Germany Germany Germany
action union
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity South Africa
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Andorra
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Africa', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Andorra', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?x property:diplomatic_relation ?y . VALUES ( ?x ) { ( resource:Spain ) ( resource:South_Africa ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9960
P58
Q838948
USER
Which work of art has Ronald Reagan as screenwriter ?
(c(Q838948),P58,Q9960)
action filter_type
action find_reverse
entity Q9960
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q9960']
SELECT DISTINCT ?d WHERE { ?d property:P58 resource:Q9960 . ?d rdf:type ontology:Q838948 }
Ronald Reagan
action filter_type
action find_reverse
entity Ronald Reagan
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Ronald Reagan']
SELECT DISTINCT ?d WHERE { ?d property:screenwriter resource:Ronald_Reagan . ?d rdf:type ontology:work_of_art }
[]
work of art
Q1598010
SYSTEM
Santa Fe Trail
Q1598010
(c(Q838948),P58,Q9960)
action filter_type
action find_reverse
entity Q9960
relation P58
type Q838948
[ANSWER] has Ronald Reagan as screenwriter
[{'concept': 'Q838948'}, 'P58', 'Q9960']
SELECT DISTINCT ?d WHERE { ?d property:P58 resource:Q9960 . ?d rdf:type ontology:Q838948 }
Santa Fe Trail
Santa Fe Trail has Ronald Reagan as screenwriter
Santa Fe Trail
action filter_type
action find_reverse
entity Ronald Reagan
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Ronald Reagan']
SELECT DISTINCT ?d WHERE { ?d property:screenwriter resource:Ronald_Reagan . ?d rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9960
P69
Q163740
USER
Where was Ronald Reagan educated ?
(Q9960,P69,c(Q163740))
action filter_type
action find
entity Q9960
relation P69
type Q163740
['Q9960', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?o WHERE { resource:Q9960 property:P69 ?o . ?o rdf:type ontology:Q163740 }
Ronald Reagan
action filter_type
action find
entity Ronald Reagan
relation educated at
type nonprofit organization
['Ronald Reagan', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?o WHERE { resource:Ronald_Reagan property:educated_at ?o . ?o rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q5411163
SYSTEM
Eureka College
Q5411163
(Q9960,P69,c(Q163740))
action filter_type
action find
entity Q9960
relation P69
type Q163740
Ronald Reagan was educated by [ANSWER]
['Q9960', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?o WHERE { resource:Q9960 property:P69 ?o . ?o rdf:type ontology:Q163740 }
Eureka College
Ronald Reagan was educated by Eureka College
Eureka College
action filter_type
action find
entity Ronald Reagan
relation educated at
type nonprofit organization
['Ronald Reagan', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?o WHERE { resource:Ronald_Reagan property:educated_at ?o . ?o rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q9960
Q159334
USER
And which secondary school?
(Q9960,P69,c(Q159334))
action filter_type
action find
entity Q9960
relation P69
type Q159334
['Q9960', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?u WHERE { resource:Q9960 property:P69 ?u . ?u rdf:type ontology:Q159334 }
Ronald Reagan
action filter_type
action find
entity Ronald Reagan
relation educated at
type secondary school
['Ronald Reagan', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?u WHERE { resource:Ronald_Reagan property:educated_at ?u . ?u rdf:type ontology:secondary_school }
[]
secondary school
Q5284951
SYSTEM
Dixon High School
Q5284951
(Q9960,P69,c(Q159334))
action filter_type
action find
entity Q9960
relation P69
type Q159334
[ANSWER]
['Q9960', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?u WHERE { resource:Q9960 property:P69 ?u . ?u rdf:type ontology:Q159334 }
Dixon High School
Dixon High School
action filter_type
action find
entity Ronald Reagan
relation educated at
type secondary school
['Ronald Reagan', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?u WHERE { resource:Ronald_Reagan property:educated_at ?u . ?u rdf:type ontology:secondary_school }
[]