Simple Question (Direct)
Simple Question
Q1685147
P106
Q12737077
USER
Which occupation is the profession of Karl-Heinz Stroux ?
(Q1685147,P106,c(Q12737077))
action filter_type
action find
entity Q1685147
relation P106
type Q12737077
['Q1685147', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1685147 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Karl-Heinz Stroux
action filter_type
action find
entity Karl-Heinz Stroux
relation occupation
type occupation
['Karl-Heinz Stroux', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Karl-Heinz_Stroux property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q1685147,P106,c(Q12737077))
action filter_type
action find
entity Q1685147
relation P106
type Q12737077
The [ANSWER] is the profession of Karl-Heinz Stroux
['Q1685147', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1685147 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
actor
The actor is the profession of Karl-Heinz Stroux
actor
action filter_type
action find
entity Karl-Heinz Stroux
relation occupation
type occupation
['Karl-Heinz Stroux', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Karl-Heinz_Stroux property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1685147
P20
Q56061
USER
Where did that person die ?
(Q33999,P20,c(Q56061))
action filter_type
action find
entity Q1685147
relation P20
type Q56061
['Q33999', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1685147 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Karl-Heinz Stroux
action filter_type
action find
entity Karl-Heinz Stroux
relation place of death
type administrative territorial entity
['actor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Karl-Heinz_Stroux property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1718
SYSTEM
Düsseldorf
Q1718
(Q33999,P20,c(Q56061))
action filter_type
action find
entity Q1685147
relation P20
type Q56061
That person died in [ANSWER]
['Q33999', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1685147 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Düsseldorf
That person died in Düsseldorf
Düsseldorf
action filter_type
action find
entity Karl-Heinz Stroux
relation place of death
type administrative territorial entity
['actor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Karl-Heinz_Stroux property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q2039202 Q1685147
P20
Q56061
USER
Or Otto Hierl-Deronco?
OR((Q1685147,P20,c(Q56061)), (Q2039202,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1685147
relation P20
action find
entity Q2039202
relation P20
type Q56061
{'OR': [['Q1685147', 'P20', {'concept': 'Q56061'}], ['Q2039202', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?r ) { ( resource:Q2039202 ) ( resource:Q1685147 ) } . ?r property:P20 ?a } . ?a rdf:type ontology:Q56061 }
Otto Hierl-Deronco Karl-Heinz Stroux
action filter_type
action union
action find
entity Karl-Heinz Stroux
relation place of death
action find
entity Otto Hierl-Deronco
relation place of death
type administrative territorial entity
{'OR': [['Karl-Heinz Stroux', 'place of death', {'concept': 'administrative territorial entity'}], ['Otto Hierl-Deronco', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?r ) { ( resource:Otto_Hierl-Deronco ) ( resource:Karl-Heinz_Stroux ) } . ?r property:place_of_death ?a } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726 Q1718
SYSTEM
Munich, Düsseldorf
Q1726 Q1718
OR((Q1685147,P20,c(Q56061)), (Q2039202,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1685147
relation P20
action find
entity Q2039202
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q1685147', 'P20', {'concept': 'Q56061'}], ['Q2039202', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?r ) { ( resource:Q2039202 ) ( resource:Q1685147 ) } . ?r property:P20 ?a } . ?a rdf:type ontology:Q56061 }
Munich Düsseldorf
Munich Düsseldorf
action filter_type
action union
action find
entity Karl-Heinz Stroux
relation place of death
action find
entity Otto Hierl-Deronco
relation place of death
type administrative territorial entity
{'OR': [['Karl-Heinz Stroux', 'place of death', {'concept': 'administrative territorial entity'}], ['Otto Hierl-Deronco', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?r ) { ( resource:Otto_Hierl-Deronco ) ( resource:Karl-Heinz_Stroux ) } . ?r property:place_of_death ?a } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1771587 Q1718
P17
Q1048835
USER
Which political territories are Düsseldorf or Potters Village present in ?
OR((Q1718,P17,c(Q1048835)), (Q1771587,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1718
relation P17
action find
entity Q1771587
relation P17
type Q1048835
{'OR': [['Q1718', 'P17', {'concept': 'Q1048835'}], ['Q1771587', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?c ) { ( resource:Q1718 ) ( resource:Q1771587 ) } . ?c property:P17 ?l } . ?l rdf:type ontology:Q1048835 }
Potters Village Düsseldorf
action filter_type
action union
action find
entity Düsseldorf
relation country
action find
entity Potters Village
relation country
type political territorial entity
{'OR': [['Düsseldorf', 'country', {'concept': 'political territorial entity'}], ['Potters Village', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?c ) { ( resource:Düsseldorf ) ( resource:Potters_Village ) } . ?c property:country ?l } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q781 Q183
SYSTEM
Antigua and Barbuda, Germany
Q781 Q183
OR((Q1718,P17,c(Q1048835)), (Q1771587,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1718
relation P17
action find
entity Q1771587
relation P17
type Q1048835
Düsseldorf or Potters Village are from [ANSWERS]
{'OR': [['Q1718', 'P17', {'concept': 'Q1048835'}], ['Q1771587', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?c ) { ( resource:Q1718 ) ( resource:Q1771587 ) } . ?c property:P17 ?l } . ?l rdf:type ontology:Q1048835 }
Antigua and Barbuda Germany
Düsseldorf or Potters Village are from Antigua and Barbuda and Germany
Antigua and Barbuda Germany
action filter_type
action union
action find
entity Düsseldorf
relation country
action find
entity Potters Village
relation country
type political territorial entity
{'OR': [['Düsseldorf', 'country', {'concept': 'political territorial entity'}], ['Potters Village', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?c ) { ( resource:Düsseldorf ) ( resource:Potters_Village ) } . ?c property:country ?l } . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q781 Q183
P17
Q1048835
USER
Which political territories are Antigua and Barbuda and Germany present in ?
(Q781,P17,c(Q1048835)) (Q183,P17,c(Q1048835))
action union
action filter_type
action find
entity Q781
relation P17
type Q1048835
action filter_type
action find
entity Q183
relation P17
type Q1048835
['Q781', 'P17', {'concept': 'Q1048835'}] ['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { resource:Q781 property:P17 ?y . ?y rdf:type ontology:Q1048835 } UNION { resource:Q183 property:P17 ?y . ?y rdf:type ontology:Q1048835 } }
Antigua and Barbuda Germany
action union
action filter_type
action find
entity Antigua and Barbuda
relation country
type political territorial entity
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Antigua and Barbuda', 'country', {'concept': 'political territorial entity'}] ['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Antigua_and_Barbuda property:country ?y . ?y rdf:type ontology:political_territorial_entity } UNION { resource:Germany property:country ?y . ?y rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q781 Q183
SYSTEM
Antigua and Barbuda, Germany
Q781 Q183
(Q781,P17,c(Q1048835)) (Q183,P17,c(Q1048835))
action union
action filter_type
action find
entity Q781
relation P17
type Q1048835
action filter_type
action find
entity Q183
relation P17
type Q1048835
Which political territories are [ANSWERS] present in
['Q781', 'P17', {'concept': 'Q1048835'}] ['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { resource:Q781 property:P17 ?y . ?y rdf:type ontology:Q1048835 } UNION { resource:Q183 property:P17 ?y . ?y rdf:type ontology:Q1048835 } }
Antigua and Barbuda Germany
Which political territories are Antigua and Barbuda and Germany present in
Antigua and Barbuda Germany
action union
action filter_type
action find
entity Antigua and Barbuda
relation country
type political territorial entity
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Antigua and Barbuda', 'country', {'concept': 'political territorial entity'}] ['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Antigua_and_Barbuda property:country ?y . ?y rdf:type ontology:political_territorial_entity } UNION { resource:Germany property:country ?y . ?y rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q781 Q183
P1001
Q1292279
USER
Which political borders have jurisdiction over Antigua and Barbuda and Germany ?
(c(Q1292279),P1001,Q781) (c(Q1292279),P1001,Q183)
action union
action filter_type
action find_reverse
entity Q781
relation P1001
type Q1292279
action filter_type
action find_reverse
entity Q183
relation P1001
type Q1292279
[{'concept': 'Q1292279'}, 'P1001', 'Q781'] [{'concept': 'Q1292279'}, 'P1001', 'Q183']
SELECT DISTINCT ?i WHERE { { ?i property:P1001 resource:Q781 . ?i rdf:type ontology:Q1292279 } UNION { ?i property:P1001 resource:Q183 . ?i rdf:type ontology:Q1292279 } }
Antigua and Barbuda Germany
action union
action filter_type
action find_reverse
entity Antigua and Barbuda
relation applies to jurisdiction
type political border
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Antigua and Barbuda'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Germany']
SELECT DISTINCT ?i WHERE { { ?i property:applies_to_jurisdiction resource:Antigua_and_Barbuda . ?i rdf:type ontology:political_border } UNION { ?i property:applies_to_jurisdiction resource:Germany . ?i rdf:type ontology:political_border } }
[]
political border
Q1991225 Q3088698 Q17351326
SYSTEM
France–Germany border, Belgium–Germany border, Antigua and Barbuda–France border
Q17351326 Q17351351 Q17351705 Q3088708 Q1991225 Q2422197 Q15214996 Q1991986 Q2457112 Q1991810 Q16025205 Q16025247 Q3088698
(c(Q1292279),P1001,Q781) (c(Q1292279),P1001,Q183)
action union
action filter_type
action find_reverse
entity Q781
relation P1001
type Q1292279
action filter_type
action find_reverse
entity Q183
relation P1001
type Q1292279
[ANSWERS] have jurisdiction over Antigua and Barbuda and Germany
[{'concept': 'Q1292279'}, 'P1001', 'Q781'] [{'concept': 'Q1292279'}, 'P1001', 'Q183']
SELECT DISTINCT ?i WHERE { { ?i property:P1001 resource:Q781 . ?i rdf:type ontology:Q1292279 } UNION { ?i property:P1001 resource:Q183 . ?i rdf:type ontology:Q1292279 } }
Antigua and Barbuda–France border Antigua and Barbuda–United Kingdom border Antigua and Barbuda–Saint Kitts and Nevis border Germany–Luxembourg border France–Germany border Denmark–Germany border Germany–Poland border Austria–Germany border Czech Republic–Germany border Germany–Switzerland border Germany–United Kingdom border Germany–Sweden border Belgium–Germany border
France–Germany border, Belgium–Germany border and Antigua and Barbuda–France border have jurisdiction over Antigua and Barbuda and Germany
France–Germany border Belgium–Germany border Antigua and Barbuda–France border
action union
action filter_type
action find_reverse
entity Antigua and Barbuda
relation applies to jurisdiction
type political border
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Antigua and Barbuda'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Germany']
SELECT DISTINCT ?i WHERE { { ?i property:applies_to_jurisdiction resource:Antigua_and_Barbuda . ?i rdf:type ontology:political_border } UNION { ?i property:applies_to_jurisdiction resource:Germany . ?i rdf:type ontology:political_border } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1991225 Q3088698 Q17351326
P17
Q15617994
USER
Which administrative territories do France–Germany border, Belgium–Germany border and Antigua and Barbuda–France border belong to ?
(Q1991225,P17,c(Q15617994)) (Q3088698,P17,c(Q15617994)) (Q17351326,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1991225
relation P17
type Q15617994
action filter_type
action find
entity Q3088698
relation P17
type Q15617994
action filter_type
action find
entity Q17351326
relation P17
type Q15617994
['Q1991225', 'P17', {'concept': 'Q15617994'}] ['Q3088698', 'P17', {'concept': 'Q15617994'}] ['Q17351326', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q15617994 . resource:Q3088698 property:P17 ?z } UNION { resource:Q1991225 property:P17 ?z . ?z rdf:type ontology:Q15617994 } }
France–Germany border Belgium–Germany border Antigua and Barbuda–France border
action union
action filter_type
action find
entity France–Germany border
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Belgium–Germany border
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Antigua and Barbuda–France border
relation country
type designation for an administrative territorial entity
['France–Germany border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Belgium–Germany border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Antigua and Barbuda–France border', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belgium–Germany_border property:country ?z } UNION { resource:France–Germany_border property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q142 Q31 Q142
SYSTEM
France for 1st, 3rd, Belgium for 2nd
Q142 Q31 Q142
(Q1991225,P17,c(Q15617994)) (Q3088698,P17,c(Q15617994)) (Q17351326,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1991225
relation P17
type Q15617994
action filter_type
action find
entity Q3088698
relation P17
type Q15617994
action filter_type
action find
entity Q17351326
relation P17
type Q15617994
[ANSWERS]
['Q1991225', 'P17', {'concept': 'Q15617994'}] ['Q3088698', 'P17', {'concept': 'Q15617994'}] ['Q17351326', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q15617994 . resource:Q3088698 property:P17 ?z } UNION { resource:Q1991225 property:P17 ?z . ?z rdf:type ontology:Q15617994 } }
France Belgium France
France, Belgium and France France–Germany border, Belgium–Germany border and Antigua and Barbuda–France border belong to
France Belgium France
action union
action filter_type
action find
entity France–Germany border
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Belgium–Germany border
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Antigua and Barbuda–France border
relation country
type designation for an administrative territorial entity
['France–Germany border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Belgium–Germany border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Antigua and Barbuda–France border', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belgium–Germany_border property:country ?z } UNION { resource:France–Germany_border property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1718
P706
Q107425
USER
What is the location where Düsseldorf is located ?
(Q1718,P706,c(Q107425))
action filter_type
action find
entity Q1718
relation P706
type Q107425
['Q1718', 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?s WHERE { resource:Q1718 property:P706 ?s . ?s rdf:type ontology:Q107425 }
Düsseldorf
action filter_type
action find
entity Düsseldorf
relation located on terrain feature
type landscape
['Düsseldorf', 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?s WHERE { resource:Düsseldorf property:located_on_terrain_feature ?s . ?s rdf:type ontology:landscape }
[]
landscape
Q212520
SYSTEM
Lower Rhine Plain
Q212520
(Q1718,P706,c(Q107425))
action filter_type
action find
entity Q1718
relation P706
type Q107425
The location Düsseldorf is located is the [ANSWER]
['Q1718', 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?s WHERE { resource:Q1718 property:P706 ?s . ?s rdf:type ontology:Q107425 }
Lower Rhine Plain
The location Düsseldorf is located is the Lower Rhine Plain
Lower Rhine Plain
action filter_type
action find
entity Düsseldorf
relation located on terrain feature
type landscape
['Düsseldorf', 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?s WHERE { resource:Düsseldorf property:located_on_terrain_feature ?s . ?s rdf:type ontology:landscape }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1718
P276
Q1269299
USER
What is located at that administrative territory ?
(c(Q1269299),P276,Q212520)
action filter_type
action find_reverse
entity Q1718
relation P276
type Q1269299
[{'concept': 'Q1269299'}, 'P276', 'Q212520']
SELECT DISTINCT ?m WHERE { ?m property:P276 resource:Q1718 . ?m rdf:type ontology:Q1269299 }
Düsseldorf
action filter_type
action find_reverse
entity Düsseldorf
relation location
type type of business entity
[{'concept': 'type of business entity'}, 'location', 'Lower Rhine Plain']
SELECT DISTINCT ?m WHERE { ?m property:location resource:Düsseldorf . ?m rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q451851
SYSTEM
Amadeus FiRe AG
Q451851
(c(Q1269299),P276,Q212520)
action filter_type
action find_reverse
entity Q1718
relation P276
type Q1269299
[ANSWER] is located at that administrative territory
[{'concept': 'Q1269299'}, 'P276', 'Q212520']
SELECT DISTINCT ?m WHERE { ?m property:P276 resource:Q1718 . ?m rdf:type ontology:Q1269299 }
Amadeus FiRe AG
Amadeus FiRe AG is located at that administrative territory
Amadeus FiRe AG
action filter_type
action find_reverse
entity Düsseldorf
relation location
type type of business entity
[{'concept': 'type of business entity'}, 'location', 'Lower Rhine Plain']
SELECT DISTINCT ?m WHERE { ?m property:location resource:Düsseldorf . ?m rdf:type ontology:type_of_business_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1785790
P85
Q7725634 Q484692 Q1048835
USER
How many political territories have more number of literary works or hymns as their anthem than Selbach, Rio Grande do Sul ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q1785790
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?h ) WHERE { { ?x property:P85 ?c . ?x rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q484692 } UNION { ?x rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q7725634 . ?x property:P85 ?c } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { { ?v rdf:type ontology:Q7725634 } UNION { ?v rdf:type ontology:Q484692 } } . resource:Q1785790 property:P85 ?v } } . FILTER ( ?h > ?e ) }
Selbach, Rio Grande do Sul
action count
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Selbach, Rio Grande do Sul
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?h ) WHERE { { ?x property:anthem ?c . ?x rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:hymn } UNION { ?x rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:literary_work . ?x property:anthem ?c } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { { ?v rdf:type ontology:literary_work } UNION { ?v rdf:type ontology:hymn } } . resource:Selbach,_Rio_Grande_do_Sul property:anthem ?v } } . FILTER ( ?h > ?e ) }
[]
literary work hymn political territorial entity
SYSTEM
42
Q1000 Q183 Q785 Q601252 Q193619 Q769 Q685 Q202023 Q763 Q664 Q766 Q9676 Q1054923 Q13353 Q781 Q5705 Q16 Q170604 Q5785 Q35 Q38610 Q3405693 Q18221 Q43448 Q778 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q408 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q1785790
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?h ) WHERE { { ?x property:P85 ?c . ?x rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q484692 } UNION { ?x rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q7725634 . ?x property:P85 ?c } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { { ?v rdf:type ontology:Q7725634 } UNION { ?v rdf:type ontology:Q484692 } } . resource:Q1785790 property:P85 ?v } } . FILTER ( ?h > ?e ) }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Grenada Solomon Islands Herm Saint Kitts and Nevis New Zealand Jamaica Isle of Man British Hong Kong Montserrat Antigua and Barbuda Catalonia Canada New France Cayman Islands Denmark Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Australia Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
42
action count
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Selbach, Rio Grande do Sul
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?h ) WHERE { { ?x property:anthem ?c . ?x rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:hymn } UNION { ?x rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:literary_work . ?x property:anthem ?c } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { { ?v rdf:type ontology:literary_work } UNION { ?v rdf:type ontology:hymn } } . resource:Selbach,_Rio_Grande_do_Sul property:anthem ?v } } . FILTER ( ?h > ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P163
Q14660
USER
What is associated with Germany ?
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q183 property:P163 ?l . ?l rdf:type ontology:Q14660 }
Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:Germany property:flag ?l . ?l rdf:type ontology:flag }
[]
flag
Q48160
SYSTEM
flag of Germany
Q48160
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
Germany [ANSWER] is associated with Germany
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q183 property:P163 ?l . ?l rdf:type ontology:Q14660 }
flag of Germany
Germany flag of Germany is associated with Germany
flag of Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:Germany property:flag ?l . ?l rdf:type ontology:flag }
[]