Simple Question (Direct)
Simple Question
Q336212
P106
Q12737077
USER
What is the profession of William R. Tolbert ?
(Q336212,P106,c(Q12737077))
action filter_type
action find
entity Q336212
relation P106
type Q12737077
['Q336212', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . resource:Q336212 property:P106 ?c }
William R. Tolbert
action filter_type
action find
entity William R. Tolbert
relation occupation
type occupation
['William R. Tolbert', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . resource:William_R._Tolbert property:occupation ?c }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q336212,P106,c(Q12737077))
action filter_type
action find
entity Q336212
relation P106
type Q12737077
The profession of William R. Tolbert is a [ANSWER]
['Q336212', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . resource:Q336212 property:P106 ?c }
politician
The profession of William R. Tolbert is a politician
politician
action filter_type
action find
entity William R. Tolbert
relation occupation
type occupation
['William R. Tolbert', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . resource:William_R._Tolbert property:occupation ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q336212
P102
Q7210356
USER
Which political organization is William R. Tolbert a member of ?
(Q336212,P102,c(Q7210356))
action filter_type
action find
entity Q336212
relation P102
type Q7210356
['Q336212', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q336212 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
William R. Tolbert
action filter_type
action find
entity William R. Tolbert
relation member of political party
type political organization
['William R. Tolbert', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:William_R._Tolbert property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q2164376
SYSTEM
True Whig Party
Q2164376
(Q336212,P102,c(Q7210356))
action filter_type
action find
entity Q336212
relation P102
type Q7210356
The [ANSWER] is William R. Tolbert a member of
['Q336212', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q336212 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
True Whig Party
The True Whig Party is William R. Tolbert a member of
True Whig Party
action filter_type
action find
entity William R. Tolbert
relation member of political party
type political organization
['William R. Tolbert', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:William_R._Tolbert property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q336212
P1196
Q1914636
USER
Which situation led to the death of William R. Tolbert ?
(Q336212,P1196,c(Q1914636))
action filter_type
action find
entity Q336212
relation P1196
type Q1914636
['Q336212', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1914636 . resource:Q336212 property:P1196 ?d }
William R. Tolbert
action filter_type
action find
entity William R. Tolbert
relation manner of death
type activity
['William R. Tolbert', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:activity . resource:William_R._Tolbert property:manner_of_death ?d }
[]
activity
Q149086
SYSTEM
homicide
Q149086
(Q336212,P1196,c(Q1914636))
action filter_type
action find
entity Q336212
relation P1196
type Q1914636
The [ANSWER] led to the death of William R. Tolbert
['Q336212', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1914636 . resource:Q336212 property:P1196 ?d }
homicide
The homicide led to the death of William R. Tolbert
homicide
action filter_type
action find
entity William R. Tolbert
relation manner of death
type activity
['William R. Tolbert', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:activity . resource:William_R._Tolbert property:manner_of_death ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1600234 Q336212
P20
Q56061
USER
Which administrative territories did William R. Tolbert or Heinz Frieler die ?
OR((Q336212,P20,c(Q56061)), (Q1600234,P20,c(Q56061)))
action filter_type
action union
action find
entity Q336212
relation P20
action find
entity Q1600234
relation P20
type Q56061
{'OR': [['Q336212', 'P20', {'concept': 'Q56061'}], ['Q1600234', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q336212 property:P20 ?o } UNION { resource:Q1600234 property:P20 ?o } } . ?o rdf:type ontology:Q56061 }
Heinz Frieler William R. Tolbert
action filter_type
action union
action find
entity William R. Tolbert
relation place of death
action find
entity Heinz Frieler
relation place of death
type administrative territorial entity
{'OR': [['William R. Tolbert', 'place of death', {'concept': 'administrative territorial entity'}], ['Heinz Frieler', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:William_R._Tolbert property:place_of_death ?o } UNION { resource:Heinz_Frieler property:place_of_death ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3917 Q3748
SYSTEM
Bocholt, Monrovia
Q3917 Q3748
OR((Q336212,P20,c(Q56061)), (Q1600234,P20,c(Q56061)))
action filter_type
action union
action find
entity Q336212
relation P20
action find
entity Q1600234
relation P20
type Q56061
William R. Tolbert or Heinz Frieler died in [ANSWERS]
{'OR': [['Q336212', 'P20', {'concept': 'Q56061'}], ['Q1600234', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q336212 property:P20 ?o } UNION { resource:Q1600234 property:P20 ?o } } . ?o rdf:type ontology:Q56061 }
Bocholt Monrovia
William R. Tolbert or Heinz Frieler died in Bocholt and Monrovia
Bocholt Monrovia
action filter_type
action union
action find
entity William R. Tolbert
relation place of death
action find
entity Heinz Frieler
relation place of death
type administrative territorial entity
{'OR': [['William R. Tolbert', 'place of death', {'concept': 'administrative territorial entity'}], ['Heinz Frieler', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:William_R._Tolbert property:place_of_death ?o } UNION { resource:Heinz_Frieler property:place_of_death ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3748 Q1229885
P1376
Q15617994
USER
How many administrative territories have Monrovia or Jaén, Peru have their center of administration ?
(Q3748,P1376,c(Q15617994)) (Q1229885,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q3748
relation P1376
type Q15617994
action filter_type
action find
entity Q1229885
relation P1376
type Q15617994
['Q3748', 'P1376', {'concept': 'Q15617994'}] ['Q1229885', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { resource:Q3748 property:P1376 ?h . ?h rdf:type ontology:Q15617994 } UNION { ?h rdf:type ontology:Q15617994 . resource:Q1229885 property:P1376 ?h } }
Monrovia Jaén, Peru
action count
action union
action filter_type
action find
entity Monrovia
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Jaén, Peru
relation capital of
type designation for an administrative territorial entity
['Monrovia', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Jaén, Peru', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { resource:Monrovia property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jaén,_Peru property:capital_of ?h } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q1014 Q15116736
(Q3748,P1376,c(Q15617994)) (Q1229885,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q3748
relation P1376
type Q15617994
action filter_type
action find
entity Q1229885
relation P1376
type Q15617994
[ANSWER]
['Q3748', 'P1376', {'concept': 'Q15617994'}] ['Q1229885', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { resource:Q3748 property:P1376 ?h . ?h rdf:type ontology:Q15617994 } UNION { ?h rdf:type ontology:Q15617994 . resource:Q1229885 property:P1376 ?h } }
Liberia Jaén District
2
action count
action union
action filter_type
action find
entity Monrovia
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Jaén, Peru
relation capital of
type designation for an administrative territorial entity
['Monrovia', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Jaén, Peru', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { resource:Monrovia property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jaén,_Peru property:capital_of ?h } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3748
P159
Q895526 Q192350
USER
How many authority organs or ministries have HQ at Monrovia ?
(c(Q895526),P159,Q3748) (c(Q192350),P159,Q3748)
action count
action union
action filter_type
action find_reverse
entity Q3748
relation P159
type Q895526
action filter_type
action find_reverse
entity Q3748
relation P159
type Q192350
[{'concept': 'Q895526'}, 'P159', 'Q3748'] [{'concept': 'Q192350'}, 'P159', 'Q3748']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { ?h property:P159 resource:Q3748 . ?h rdf:type ontology:Q895526 } UNION { ?h property:P159 resource:Q3748 . ?h rdf:type ontology:Q192350 } }
Monrovia
action count
action union
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type authority organ
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type ministry
[{'concept': 'authority organ'}, 'headquarters location', 'Monrovia'] [{'concept': 'ministry'}, 'headquarters location', 'Monrovia']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { ?h property:headquarters_location resource:Monrovia . ?h rdf:type ontology:authority_organ } UNION { ?h property:headquarters_location resource:Monrovia . ?h rdf:type ontology:ministry } }
[]
authority organ ministry
SYSTEM
2
Q4294387 Q6972398
(c(Q895526),P159,Q3748) (c(Q192350),P159,Q3748)
action count
action union
action filter_type
action find_reverse
entity Q3748
relation P159
type Q895526
action filter_type
action find_reverse
entity Q3748
relation P159
type Q192350
[ANSWER]
[{'concept': 'Q895526'}, 'P159', 'Q3748'] [{'concept': 'Q192350'}, 'P159', 'Q3748']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { ?h property:P159 resource:Q3748 . ?h rdf:type ontology:Q895526 } UNION { ?h property:P159 resource:Q3748 . ?h rdf:type ontology:Q192350 } }
Ministry of Foreign Affairs National Elections Commission of Liberia
2
action count
action union
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type authority organ
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type ministry
[{'concept': 'authority organ'}, 'headquarters location', 'Monrovia'] [{'concept': 'ministry'}, 'headquarters location', 'Monrovia']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { ?h property:headquarters_location resource:Monrovia . ?h rdf:type ontology:authority_organ } UNION { ?h property:headquarters_location resource:Monrovia . ?h rdf:type ontology:ministry } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3748 Q214364
P931
Q62447
USER
How many aerodromes serve the place named Monrovia or Alpe d'Huez ?
(c(Q62447),P931,Q3748) (c(Q62447),P931,Q214364)
action count
action union
action filter_type
action find_reverse
entity Q3748
relation P931
type Q62447
action filter_type
action find_reverse
entity Q214364
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q3748'] [{'concept': 'Q62447'}, 'P931', 'Q214364']
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P931 ?p . VALUES ( ?p ) { ( resource:Q3748 ) ( resource:Q214364 ) } }
Monrovia Alpe d'Huez
action count
action union
action filter_type
action find_reverse
entity Monrovia
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Alpe d'Huez
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Monrovia'] [{'concept': 'aerodrome'}, 'place served by airport', "Alpe d'Huez"]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:place_served_by_airport ?p . VALUES ( ?p ) { ( resource:Monrovia ) ( resource:Alpe_d'Huez ) } }
[]
aerodrome
SYSTEM
3
Q721497 Q676718 Q2840454
(c(Q62447),P931,Q3748) (c(Q62447),P931,Q214364)
action count
action union
action filter_type
action find_reverse
entity Q3748
relation P931
type Q62447
action filter_type
action find_reverse
entity Q214364
relation P931
type Q62447
[ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q3748'] [{'concept': 'Q62447'}, 'P931', 'Q214364']
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P931 ?p . VALUES ( ?p ) { ( resource:Q3748 ) ( resource:Q214364 ) } }
Roberts International Airport Spriggs Payne Airport Alpe d'Huez Airport
3
action count
action union
action filter_type
action find_reverse
entity Monrovia
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Alpe d'Huez
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Monrovia'] [{'concept': 'aerodrome'}, 'place served by airport', "Alpe d'Huez"]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:place_served_by_airport ?p . VALUES ( ?p ) { ( resource:Monrovia ) ( resource:Alpe_d'Huez ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3748
P159
Q192350 Q7210356
USER
How many ministries and political organizations have their head office location at Monrovia ?
(c(Q192350),P159,Q3748) (c(Q7210356),P159,Q3748)
action count
action union
action filter_type
action find_reverse
entity Q3748
relation P159
type Q192350
action filter_type
action find_reverse
entity Q3748
relation P159
type Q7210356
[{'concept': 'Q192350'}, 'P159', 'Q3748'] [{'concept': 'Q7210356'}, 'P159', 'Q3748']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:P159 resource:Q3748 . ?u rdf:type ontology:Q192350 } UNION { ?u property:P159 resource:Q3748 . ?u rdf:type ontology:Q7210356 } }
Monrovia
action count
action union
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type ministry
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type political organization
[{'concept': 'ministry'}, 'headquarters location', 'Monrovia'] [{'concept': 'political organization'}, 'headquarters location', 'Monrovia']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:headquarters_location resource:Monrovia . ?u rdf:type ontology:ministry } UNION { ?u property:headquarters_location resource:Monrovia . ?u rdf:type ontology:political_organization } }
[]
ministry political organization
SYSTEM
1 ministries and 1 political organizations
Q2164376 Q4294387
(c(Q192350),P159,Q3748) (c(Q7210356),P159,Q3748)
action count
action union
action filter_type
action find_reverse
entity Q3748
relation P159
type Q192350
action filter_type
action find_reverse
entity Q3748
relation P159
type Q7210356
[ANSWER]
[{'concept': 'Q192350'}, 'P159', 'Q3748'] [{'concept': 'Q7210356'}, 'P159', 'Q3748']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:P159 resource:Q3748 . ?u rdf:type ontology:Q192350 } UNION { ?u property:P159 resource:Q3748 . ?u rdf:type ontology:Q7210356 } }
True Whig Party Ministry of Foreign Affairs
1 ministries and 1 political organizations
action count
action union
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type ministry
action filter_type
action find_reverse
entity Monrovia
relation headquarters location
type political organization
[{'concept': 'ministry'}, 'headquarters location', 'Monrovia'] [{'concept': 'political organization'}, 'headquarters location', 'Monrovia']
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:headquarters_location resource:Monrovia . ?u rdf:type ontology:ministry } UNION { ?u property:headquarters_location resource:Monrovia . ?u rdf:type ontology:political_organization } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q1914636 Q11060274 Q838948
USER
How many activities are expressed in around 2 prints or works of art ?
(c(Q11060274)|c(Q838948),P180,c(Q1914636))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q1914636
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q1914636
type Q838948
value 2
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?k ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } . ?c rdf:type ?k } GROUP BY ?y } . FILTER ( ?n = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type activity
type print
action find_reverse_tuple_counts
relation depicts
type activity
type work of art
value 2
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?k ) { ( ontology:print ) ( ontology:work_of_art ) } . ?c rdf:type ?k } GROUP BY ?y } . FILTER ( ?n = 2 ) }
[]
activity print work of art
SYSTEM
11
Q3199915 Q11410 Q11416 Q638 Q9350 Q10737 Q1132965 Q149086 Q192296 Q1358616 Q7214166
(c(Q11060274)|c(Q838948),P180,c(Q1914636))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q1914636
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q1914636
type Q838948
value 2
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?k ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } . ?c rdf:type ?k } GROUP BY ?y } . FILTER ( ?n = 2 ) }
massacre game gambling music yoga suicide sea bathing homicide weaving mortification of the flesh harvest
11
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type activity
type print
action find_reverse_tuple_counts
relation depicts
type activity
type work of art
value 2
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?k ) { ( ontology:print ) ( ontology:work_of_art ) } . ?c rdf:type ?k } GROUP BY ?y } . FILTER ( ?n = 2 ) }
[]