Simple Question (Direct)
Simple Question
Q1281698
P19
Q515
USER
Which city was Erich Glette born in ?
(Q1281698,P19,c(Q515))
action filter_type
action find
entity Q1281698
relation P19
type Q515
['Q1281698', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { resource:Q1281698 property:P19 ?s . ?s rdf:type ontology:Q515 }
Erich Glette
action filter_type
action find
entity Erich Glette
relation place of birth
type city
['Erich Glette', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { resource:Erich_Glette property:place_of_birth ?s . ?s rdf:type ontology:city }
[]
city
Q1721
SYSTEM
Wiesbaden
Q1721
(Q1281698,P19,c(Q515))
action filter_type
action find
entity Q1281698
relation P19
type Q515
Erich Glette was born in [ANSWER]
['Q1281698', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { resource:Q1281698 property:P19 ?s . ?s rdf:type ontology:Q515 }
Wiesbaden
Erich Glette was born in Wiesbaden
Wiesbaden
action filter_type
action find
entity Erich Glette
relation place of birth
type city
['Erich Glette', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { resource:Erich_Glette property:place_of_birth ?s . ?s rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1721
P276
Q3914
USER
What is situated at that city ?
(c(Q3914),P276,Q1721)
action filter_type
action find_reverse
entity Q1721
relation P276
type Q3914
[{'concept': 'Q3914'}, 'P276', 'Q1721']
SELECT DISTINCT ?r WHERE { ?r property:P276 resource:Q1721 . ?r rdf:type ontology:Q3914 }
Wiesbaden
action filter_type
action find_reverse
entity Wiesbaden
relation location
type school
[{'concept': 'school'}, 'location', 'Wiesbaden']
SELECT DISTINCT ?r WHERE { ?r property:location resource:Wiesbaden . ?r rdf:type ontology:school }
[]
school
Q316272
SYSTEM
EBS University of Business and Law
Q316272
(c(Q3914),P276,Q1721)
action filter_type
action find_reverse
entity Q1721
relation P276
type Q3914
[ANSWER] is situated at that city
[{'concept': 'Q3914'}, 'P276', 'Q1721']
SELECT DISTINCT ?r WHERE { ?r property:P276 resource:Q1721 . ?r rdf:type ontology:Q3914 }
EBS University of Business and Law
EBS University of Business and Law is situated at that city
EBS University of Business and Law
action filter_type
action find_reverse
entity Wiesbaden
relation location
type school
[{'concept': 'school'}, 'location', 'Wiesbaden']
SELECT DISTINCT ?r WHERE { ?r property:location resource:Wiesbaden . ?r rdf:type ontology:school }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q316272 Q183
P17
Q1048835
USER
Is that school a part of Germany ?
(Q316272,P17,Q183)
action is_in
entity Q183
action find
entity Q316272
relation P17
['Q316272', 'P17', 'Q183']
ASK WHERE { resource:Q316272 property:P17 resource:Q183 }
EBS University of Business and Law Germany
action is_in
entity Germany
action find
entity EBS University of Business and Law
relation country
['EBS University of Business and Law', 'country', 'Germany']
ASK WHERE { resource:EBS_University_of_Business_and_Law property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q316272,P17,Q183)
action is_in
entity Q183
action find
entity Q316272
relation P17
[ANSWER]
['Q316272', 'P17', 'Q183']
ASK WHERE { resource:Q316272 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity EBS University of Business and Law
relation country
['EBS University of Business and Law', 'country', 'Germany']
ASK WHERE { resource:EBS_University_of_Business_and_Law property:country resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q316272
P159
Q515
USER
Which city is the head office of EBS University of Business and Law ?
(Q316272,P159,c(Q515))
action filter_type
action find
entity Q316272
relation P159
type Q515
['Q316272', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q316272 property:P159 ?a . ?a rdf:type ontology:Q515 }
EBS University of Business and Law
action filter_type
action find
entity EBS University of Business and Law
relation headquarters location
type city
['EBS University of Business and Law', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:EBS_University_of_Business_and_Law property:headquarters_location ?a . ?a rdf:type ontology:city }
[]
city
Q1721
SYSTEM
Wiesbaden
Q1721
(Q316272,P159,c(Q515))
action filter_type
action find
entity Q316272
relation P159
type Q515
[ANSWER] is the head office of EBS University of Business and Law
['Q316272', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q316272 property:P159 ?a . ?a rdf:type ontology:Q515 }
Wiesbaden
Wiesbaden is the head office of EBS University of Business and Law
Wiesbaden
action filter_type
action find
entity EBS University of Business and Law
relation headquarters location
type city
['EBS University of Business and Law', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:EBS_University_of_Business_and_Law property:headquarters_location ?a . ?a rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1721
P47
Q1048835
USER
Which political territories have a shared border with that city ?
(Q1721,P47,c(Q1048835))
action filter_type
action find
entity Q1721
relation P47
type Q1048835
['Q1721', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q1721 property:P47 ?d . ?d rdf:type ontology:Q1048835 }
Wiesbaden
action filter_type
action find
entity Wiesbaden
relation shares border with
type political territorial entity
['Wiesbaden', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Wiesbaden property:shares_border_with ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q7914 Q8569 Q7907
SYSTEM
Groß-Gerau, Mainz-Bingen, Rheingau-Taunus-Kreis
Q7909 Q8569 Q7914 Q7907
(Q1721,P47,c(Q1048835))
action filter_type
action find
entity Q1721
relation P47
type Q1048835
[ANSWERS] have a shared border with that city
['Q1721', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q1721 property:P47 ?d . ?d rdf:type ontology:Q1048835 }
Main-Taunus-Kreis Mainz-Bingen Groß-Gerau Rheingau-Taunus-Kreis
Groß-Gerau, Mainz-Bingen and Rheingau-Taunus-Kreis have a shared border with that city
Groß-Gerau Mainz-Bingen Rheingau-Taunus-Kreis
action filter_type
action find
entity Wiesbaden
relation shares border with
type political territorial entity
['Wiesbaden', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Wiesbaden property:shares_border_with ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q193619
P122
Q1307214 Q7275 Q1048835
USER
Which political territories have around the same number of forms of government and states as the form of government as Union of South Africa ?
(c(Q1048835),P122,c(Q1307214)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q193619
relation P122
type Q1307214
type Q7275
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q193619 property:P122 ?g . { VALUES ( ?u ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } . ?g rdf:type ?u } } } . FILTER ( ?n = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } } GROUP BY ?j } }
Union of South Africa
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action count
action filter_multi_types
action find
entity Union of South Africa
relation basic form of government
type form of government
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'state'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Union_of_South_Africa property:basic_form_of_government ?g . { VALUES ( ?u ) { ( ontology:state ) ( ontology:form_of_government ) } . ?g rdf:type ?u } } } . FILTER ( ?n = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:state ) ( ontology:form_of_government ) } } GROUP BY ?j } }
[]
form of government state political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q1925048 Q785 Q35 Q38610 Q79965 Q223793 Q2594990 Q757 Q468378 Q40 Q151938 Q31747
(c(Q1048835),P122,c(Q1307214)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q193619
relation P122
type Q1307214
type Q7275
[ANSWERS] have around the same number of forms of government and states as the form of government as Union of South Africa
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q193619 property:P122 ?g . { VALUES ( ?u ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } . ?g rdf:type ?u } } } . FILTER ( ?n = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } } GROUP BY ?j } }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves San Pedro Partido Jersey Denmark Dominion of Newfoundland Golden Horde Kingdom of Etruria Dominion of New Zealand Saint Vincent and the Grenadines County of Hoya Austria Neutral Moresnet Irish Free State
Germany, Denmark and Austria have around the same number of forms of government and states as the form of government as Union of South Africa
Germany Denmark Austria
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action count
action filter_multi_types
action find
entity Union of South Africa
relation basic form of government
type form of government
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'state'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Union_of_South_Africa property:basic_form_of_government ?g . { VALUES ( ?u ) { ( ontology:state ) ( ontology:form_of_government ) } . ?g rdf:type ?u } } } . FILTER ( ?n = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:state ) ( ontology:form_of_government ) } } GROUP BY ?j } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q35
P122
Q1307214 Q7275 Q1048835
USER
And how about Denmark?
(c(Q1048835),P122,c(Q1307214)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q35
relation P122
type Q1307214
type Q7275
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?s WHERE { { ?s rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1307214 . ?s property:P122 ?e } UNION { ?s property:P122 ?e . ?s rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q7275 } } GROUP BY ?s } . FILTER ( ?r = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q35 property:P122 ?a . { { ?a rdf:type ontology:Q1307214 } UNION { ?a rdf:type ontology:Q7275 } } } } }
Denmark
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action count
action filter_multi_types
action find
entity Denmark
relation basic form of government
type form of government
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'state'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?s WHERE { { ?s rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:form_of_government . ?s property:basic_form_of_government ?e } UNION { ?s property:basic_form_of_government ?e . ?s rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:state } } GROUP BY ?s } . FILTER ( ?r = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Denmark property:basic_form_of_government ?a . { { ?a rdf:type ontology:form_of_government } UNION { ?a rdf:type ontology:state } } } } }
[]
form of government state political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q1925048 Q785 Q35 Q38610 Q79965 Q223793 Q2594990 Q757 Q468378 Q40 Q151938 Q31747
(c(Q1048835),P122,c(Q1307214)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q35
relation P122
type Q1307214
type Q7275
[ANSWERS]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?s WHERE { { ?s rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1307214 . ?s property:P122 ?e } UNION { ?s property:P122 ?e . ?s rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q7275 } } GROUP BY ?s } . FILTER ( ?r = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q35 property:P122 ?a . { { ?a rdf:type ontology:Q1307214 } UNION { ?a rdf:type ontology:Q7275 } } } } }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves San Pedro Partido Jersey Denmark Dominion of Newfoundland Golden Horde Kingdom of Etruria Dominion of New Zealand Saint Vincent and the Grenadines County of Hoya Austria Neutral Moresnet Irish Free State
Germany Denmark Austria
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action count
action filter_multi_types
action find
entity Denmark
relation basic form of government
type form of government
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'state'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?s WHERE { { ?s rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:form_of_government . ?s property:basic_form_of_government ?e } UNION { ?s property:basic_form_of_government ?e . ?s rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:state } } GROUP BY ?s } . FILTER ( ?r = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Denmark property:basic_form_of_government ?a . { { ?a rdf:type ontology:form_of_government } UNION { ?a rdf:type ontology:state } } } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q300445
P530
Q15617994
USER
Do Ragoli have ambassadorial relations with those political territories ?
(Q300445,P530,Q183) (Q300445,P530,Q35) (Q300445,P530,Q40)
action is_in
entity prev_answer
action find
entity Q300445
relation P530
['Q300445', 'P530', 'Q183'] ['Q300445', 'P530', 'Q35'] ['Q300445', 'P530', 'Q40']
ASK WHERE { VALUES ( ?y ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } . resource:Q300445 property:P530 ?y }
Ragoli
action is_in
entity prev_answer
action find
entity Ragoli
relation diplomatic relation
['Ragoli', 'diplomatic relation', 'Germany'] ['Ragoli', 'diplomatic relation', 'Denmark'] ['Ragoli', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?y ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } . resource:Ragoli property:diplomatic_relation ?y }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q300445,P530,Q183) (Q300445,P530,Q35) (Q300445,P530,Q40)
action is_in
entity prev_answer
action find
entity Q300445
relation P530
[ANSWER]
['Q300445', 'P530', 'Q183'] ['Q300445', 'P530', 'Q35'] ['Q300445', 'P530', 'Q40']
ASK WHERE { VALUES ( ?y ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } . resource:Q300445 property:P530 ?y }
No
action is_in
entity prev_answer
action find
entity Ragoli
relation diplomatic relation
['Ragoli', 'diplomatic relation', 'Germany'] ['Ragoli', 'diplomatic relation', 'Denmark'] ['Ragoli', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?y ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } . resource:Ragoli property:diplomatic_relation ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1721
P47
Q515 Q1048835
USER
How many cities and political territories share border with Wiesbaden ?
(Q1721,P47,c(Q515)) (Q1721,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1721
relation P47
type Q515
action filter_type
action find
entity Q1721
relation P47
type Q1048835
['Q1721', 'P47', {'concept': 'Q515'}] ['Q1721', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Q1721 property:P47 ?q . ?q rdf:type ontology:Q515 } UNION { resource:Q1721 property:P47 ?q . ?q rdf:type ontology:Q1048835 } }
Wiesbaden
action count
action union
action filter_type
action find
entity Wiesbaden
relation shares border with
type city
action filter_type
action find
entity Wiesbaden
relation shares border with
type political territorial entity
['Wiesbaden', 'shares border with', {'concept': 'city'}] ['Wiesbaden', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Wiesbaden property:shares_border_with ?q . ?q rdf:type ontology:city } UNION { resource:Wiesbaden property:shares_border_with ?q . ?q rdf:type ontology:political_territorial_entity } }
[]
city political territorial entity
SYSTEM
1 cities and 4 political territories
Q7909 Q8569 Q7914 Q1720 Q7907
(Q1721,P47,c(Q515)) (Q1721,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1721
relation P47
type Q515
action filter_type
action find
entity Q1721
relation P47
type Q1048835
[ANSWER]
['Q1721', 'P47', {'concept': 'Q515'}] ['Q1721', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Q1721 property:P47 ?q . ?q rdf:type ontology:Q515 } UNION { resource:Q1721 property:P47 ?q . ?q rdf:type ontology:Q1048835 } }
Main-Taunus-Kreis Mainz-Bingen Groß-Gerau Mainz Rheingau-Taunus-Kreis
1 cities and 4 political territories
action count
action union
action filter_type
action find
entity Wiesbaden
relation shares border with
type city
action filter_type
action find
entity Wiesbaden
relation shares border with
type political territorial entity
['Wiesbaden', 'shares border with', {'concept': 'city'}] ['Wiesbaden', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Wiesbaden property:shares_border_with ?q . ?q rdf:type ontology:city } UNION { resource:Wiesbaden property:shares_border_with ?q . ?q rdf:type ontology:political_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P138
Q874405 Q288514
USER
How many social groups and fairs have Germany as their namesake ?
(c(Q874405),P138,Q183) (c(Q288514),P138,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P138
type Q874405
action filter_type
action find_reverse
entity Q183
relation P138
type Q288514
[{'concept': 'Q874405'}, 'P138', 'Q183'] [{'concept': 'Q288514'}, 'P138', 'Q183']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w property:P138 resource:Q183 . ?w rdf:type ontology:Q874405 } UNION { ?w property:P138 resource:Q183 . ?w rdf:type ontology:Q288514 } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation named after
type social group
action filter_type
action find_reverse
entity Germany
relation named after
type fair
[{'concept': 'social group'}, 'named after', 'Germany'] [{'concept': 'fair'}, 'named after', 'Germany']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w property:named_after resource:Germany . ?w rdf:type ontology:social_group } UNION { ?w property:named_after resource:Germany . ?w rdf:type ontology:fair } }
[]
social group fair
SYSTEM
1 social groups and 1 fairs
Q884213 Q1534096
(c(Q874405),P138,Q183) (c(Q288514),P138,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P138
type Q874405
action filter_type
action find_reverse
entity Q183
relation P138
type Q288514
[ANSWER]
[{'concept': 'Q874405'}, 'P138', 'Q183'] [{'concept': 'Q288514'}, 'P138', 'Q183']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w property:P138 resource:Q183 . ?w rdf:type ontology:Q874405 } UNION { ?w property:P138 resource:Q183 . ?w rdf:type ontology:Q288514 } }
Bunte Republik Neustadt Goethe Federation
1 social groups and 1 fairs
action count
action union
action filter_type
action find_reverse
entity Germany
relation named after
type social group
action filter_type
action find_reverse
entity Germany
relation named after
type fair
[{'concept': 'social group'}, 'named after', 'Germany'] [{'concept': 'fair'}, 'named after', 'Germany']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w property:named_after resource:Germany . ?w rdf:type ontology:social_group } UNION { ?w property:named_after resource:Germany . ?w rdf:type ontology:fair } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic associations with min number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?s } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { ?j rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?j property:P530 ?e } GROUP BY ?j } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?s } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?e } GROUP BY ?j } }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have diplomatic associations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?s } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { ?j rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?j property:P530 ?e } GROUP BY ?j } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic associations with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?s } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?e } GROUP BY ?j } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1000 Q769 Q691
P85
Q484692
USER
Which are the national anthems of Gabon, Grenada and Papua New Guinea ?
(Q1000,P85,c(Q484692)) (Q769,P85,c(Q484692)) (Q691,P85,c(Q484692))
action union
action filter_type
action find
entity Q1000
relation P85
type Q484692
action filter_type
action find
entity Q769
relation P85
type Q484692
action filter_type
action find
entity Q691
relation P85
type Q484692
['Q1000', 'P85', {'concept': 'Q484692'}] ['Q769', 'P85', {'concept': 'Q484692'}] ['Q691', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?q ) { ( resource:Q1000 ) ( resource:Q769 ) } . ?q property:P85 ?y }
Gabon Grenada Papua New Guinea
action union
action filter_type
action find
entity Gabon
relation anthem
type hymn
action filter_type
action find
entity Grenada
relation anthem
type hymn
action filter_type
action find
entity Papua New Guinea
relation anthem
type hymn
['Gabon', 'anthem', {'concept': 'hymn'}] ['Grenada', 'anthem', {'concept': 'hymn'}] ['Papua New Guinea', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?q ) { ( resource:Gabon ) ( resource:Grenada ) } . ?q property:anthem ?y }
[]
hymn
Q242723 Q752655 Q628682
SYSTEM
La Concorde, Hail Grenada, O Arise, All You Sons
Q242723 Q752655 Q628682
(Q1000,P85,c(Q484692)) (Q769,P85,c(Q484692)) (Q691,P85,c(Q484692))
action union
action filter_type
action find
entity Q1000
relation P85
type Q484692
action filter_type
action find
entity Q769
relation P85
type Q484692
action filter_type
action find
entity Q691
relation P85
type Q484692
[ANSWERS]
['Q1000', 'P85', {'concept': 'Q484692'}] ['Q769', 'P85', {'concept': 'Q484692'}] ['Q691', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?q ) { ( resource:Q1000 ) ( resource:Q769 ) } . ?q property:P85 ?y }
La Concorde Hail Grenada O Arise, All You Sons
The national anthems of Gabon , Grenada and Papua New Guinea are La Concorde, Hail Grenada and O Arise, All You Sons
La Concorde Hail Grenada O Arise, All You Sons
action union
action filter_type
action find
entity Gabon
relation anthem
type hymn
action filter_type
action find
entity Grenada
relation anthem
type hymn
action filter_type
action find
entity Papua New Guinea
relation anthem
type hymn
['Gabon', 'anthem', {'concept': 'hymn'}] ['Grenada', 'anthem', {'concept': 'hymn'}] ['Papua New Guinea', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?q ) { ( resource:Gabon ) ( resource:Grenada ) } . ?q property:anthem ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1000
P1376
Q56061
USER
Which administrative territory is the capital of Gabon ?
(c(Q56061),P1376,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q1000']
SELECT DISTINCT ?f WHERE { ?f property:P1376 resource:Q1000 . ?f rdf:type ontology:Q56061 }
Gabon
action filter_type
action find_reverse
entity Gabon
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Gabon']
SELECT DISTINCT ?f WHERE { ?f property:capital_of resource:Gabon . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3825
SYSTEM
Libreville
Q3825
(c(Q56061),P1376,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P1376
type Q56061
[ANSWER] is the capital of Gabon
[{'concept': 'Q56061'}, 'P1376', 'Q1000']
SELECT DISTINCT ?f WHERE { ?f property:P1376 resource:Q1000 . ?f rdf:type ontology:Q56061 }
Libreville
Libreville is the capital of Gabon
Libreville
action filter_type
action find_reverse
entity Gabon
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Gabon']
SELECT DISTINCT ?f WHERE { ?f property:capital_of resource:Gabon . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3825
P190
Q56061
USER
Which administrative territories are partner town of that one ?
(c(Q56061),P190,Q3825)
action filter_type
action find
entity Q3825
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q3825']
SELECT DISTINCT ?j WHERE { resource:Q3825 property:P190 ?j . ?j rdf:type ontology:Q56061 }
Libreville
action filter_type
action find
entity Libreville
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Libreville']
SELECT DISTINCT ?j WHERE { resource:Libreville property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q33959 Q5468
SYSTEM
Nice, Durban
Q33959 Q5468
(c(Q56061),P190,Q3825)
action filter_type
action find
entity Q3825
relation P190
type Q56061
[ANSWERS] are partner town of that one
[{'concept': 'Q56061'}, 'P190', 'Q3825']
SELECT DISTINCT ?j WHERE { resource:Q3825 property:P190 ?j . ?j rdf:type ontology:Q56061 }
Nice Durban
Nice and Durban are partner town of that one
Nice Durban
action filter_type
action find
entity Libreville
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Libreville']
SELECT DISTINCT ?j WHERE { resource:Libreville property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]