Simple Question (Direct)
Simple Question
Q5296851
P69
Q3918
USER
Which university is Donovan Olson an alumni of ?
(Q5296851,P69,c(Q3918))
action filter_type
action find
entity Q5296851
relation P69
type Q3918
['Q5296851', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q5296851 property:P69 ?h . ?h rdf:type ontology:Q3918 }
Donovan Olson
action filter_type
action find
entity Donovan Olson
relation educated at
type university
['Donovan Olson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:Donovan_Olson property:educated_at ?h . ?h rdf:type ontology:university }
[]
university
Q1136919
SYSTEM
Iowa State University
Q1136919
(Q5296851,P69,c(Q3918))
action filter_type
action find
entity Q5296851
relation P69
type Q3918
The [ANSWER] is Donovan Olson an alumni of
['Q5296851', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q5296851 property:P69 ?h . ?h rdf:type ontology:Q3918 }
Iowa State University
The Iowa State University is Donovan Olson an alumni of
Iowa State University
action filter_type
action find
entity Donovan Olson
relation educated at
type university
['Donovan Olson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:Donovan_Olson property:educated_at ?h . ?h rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5296851
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q1136919,P39,c(Q12737077))
action filter_type
action find
entity Q5296851
relation P39
type Q12737077
['Q1136919', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q5296851 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
Donovan Olson
action filter_type
action find
entity Donovan Olson
relation position held
type occupation
['Iowa State University', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Donovan_Olson property:position_held ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q17486706
SYSTEM
member of the Iowa House of Representatives
Q17486706
(Q1136919,P39,c(Q12737077))
action filter_type
action find
entity Q5296851
relation P39
type Q12737077
A [ANSWER] was a position held by that person
['Q1136919', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q5296851 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
member of the Iowa House of Representatives
A member of the Iowa House of Representatives was a position held by that person
member of the Iowa House of Representatives
action filter_type
action find
entity Donovan Olson
relation position held
type occupation
['Iowa State University', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Donovan_Olson property:position_held ?d . ?d rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q17486706 Q865887
P39
Q502895
USER
Did Birte Karalus hold the position of that occupation ?
(Q865887,P39,Q17486706)
action is_in
entity Q865887
action find
entity Q17486706
relation P39
['Q865887', 'P39', 'Q17486706']
ASK WHERE { resource:Q17486706 property:P39 resource:Q865887 }
member of the Iowa House of Representatives Birte Karalus
action is_in
entity Birte Karalus
action find
entity member of the Iowa House of Representatives
relation position held
['Birte Karalus', 'position held', 'member of the Iowa House of Representatives']
ASK WHERE { resource:member_of_the_Iowa_House_of_Representatives property:position_held resource:Birte_Karalus }
[]
common name
SYSTEM
NO
(Q865887,P39,Q17486706)
action is_in
entity Q865887
action find
entity Q17486706
relation P39
[ANSWER]
['Q865887', 'P39', 'Q17486706']
ASK WHERE { resource:Q17486706 property:P39 resource:Q865887 }
No
action is_in
entity Birte Karalus
action find
entity member of the Iowa House of Representatives
relation position held
['Birte Karalus', 'position held', 'member of the Iowa House of Representatives']
ASK WHERE { resource:member_of_the_Iowa_House_of_Representatives property:position_held resource:Birte_Karalus }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q200895
P417
Q502895 Q12737077
USER
Which people are the patron saint of approximately the same number of occupations as Agatha of Sicily ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q200895
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { ?m rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Q200895 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?x = ?z ) }
Agatha of Sicily
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Agatha of Sicily
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { ?m rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Agatha_of_Sicily property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?x = ?z ) }
[]
common name occupation
Q128538 Q192816 Q200895
SYSTEM
Luke the Evangelist, Saint Barbara, Agatha of Sicily
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q200895
relation P417
type Q502895
[ANSWERS] are the patron saint of approximately the same number of occupations as Agatha of Sicily
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { ?m rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Q200895 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?x = ?z ) }
Luke the Evangelist Saint Barbara Agatha of Sicily
Luke the Evangelist, Saint Barbara and Agatha of Sicily are the patron saint of approximately the same number of occupations as Agatha of Sicily
Luke the Evangelist Saint Barbara Agatha of Sicily
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Agatha of Sicily
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { ?m rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Agatha_of_Sicily property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?x = ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P248
Q2342494 Q35749 Q502895
USER
How many people have been referred in approximately 1 collectables or parliaments ?
(c(Q502895),P248,c(Q2342494)|c(Q35749))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q2342494
action find_tuple_counts
relation P248
type Q502895
type Q35749
value 1
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q2342494'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) ?t WHERE { { ?t property:P248 ?n . ?t rdf:type ontology:Q502895 . ?n rdf:type ontology:Q2342494 } UNION { ?t property:P248 ?n . ?t rdf:type ontology:Q502895 . ?n rdf:type ontology:Q35749 } } GROUP BY ?t } }
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type collectable
action find_tuple_counts
relation stated in
type common name
type parliament
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'collectable'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) ?t WHERE { { ?t property:stated_in ?n . ?t rdf:type ontology:common_name . ?n rdf:type ontology:collectable } UNION { ?t property:stated_in ?n . ?t rdf:type ontology:common_name . ?n rdf:type ontology:parliament } } GROUP BY ?t } }
[]
collectable parliament common name
SYSTEM
25
Q7342716 Q6237321 Q16859511 Q6249883 Q6236088 Q5606264 Q5606262 Q22936292 Q6255172 Q16908903 Q8018837 Q6145020 Q15990337 Q16850547 Q17626521 Q16031816 Q6228730 Q6237308 Q15452052 Q5537315 Q18166520 Q5239885 Q17385895 Q5241196 Q5233462
(c(Q502895),P248,c(Q2342494)|c(Q35749))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q2342494
action find_tuple_counts
relation P248
type Q502895
type Q35749
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q2342494'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) ?t WHERE { { ?t property:P248 ?n . ?t rdf:type ontology:Q502895 . ?n rdf:type ontology:Q2342494 } UNION { ?t property:P248 ?n . ?t rdf:type ontology:Q502895 . ?n rdf:type ontology:Q35749 } } GROUP BY ?t } }
Robert Campbell John Hall John Robinson John Murphy John Gray Greg Smith Greg Smith Gilles De Haes John Roberts William Walker William Stewart James Walker James Walker John Martin Colin Campbell William Walker John Davies John Hall John Rogers George Brown William Thompson David Smith David Evans David Wilson David Evans
25
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type collectable
action find_tuple_counts
relation stated in
type common name
type parliament
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'collectable'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) ?t WHERE { { ?t property:stated_in ?n . ?t rdf:type ontology:common_name . ?n rdf:type ontology:collectable } UNION { ?t property:stated_in ?n . ?t rdf:type ontology:common_name . ?n rdf:type ontology:parliament } } GROUP BY ?t } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q790468
P1303
Q34379 Q502895
USER
Which musical instruments do less number of people know to play than baritone horn ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q790468
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { ?g property:P1303 resource:Q790468 . ?g rdf:type ontology:Q502895 } } . FILTER ( ?w < ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?o } }
baritone horn
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity baritone horn
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { ?g property:instrument resource:baritone_horn . ?g rdf:type ontology:common_name } } . FILTER ( ?w < ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?o } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q790468
relation P1303
type Q502895
[ANSWERS] less number of people know to play than baritone horn
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { ?g property:P1303 resource:Q790468 . ?g rdf:type ontology:Q502895 } } . FILTER ( ?w < ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?o } }
spoon cajón wind instrument
Spoon, cajón and wind instrument less number of people know to play than baritone horn
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity baritone horn
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { ?g property:instrument resource:baritone_horn . ?g rdf:type ontology:common_name } } . FILTER ( ?w < ?y ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?o } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q862501
P1303
Q34379 Q502895
USER
And also tell me about ondes Martenot?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q862501
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P1303 resource:Q862501 . ?a rdf:type ontology:Q502895 } } . FILTER ( ?v < ?u ) . { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P1303 ?k . ?l rdf:type ontology:Q502895 . ?k rdf:type ontology:Q34379 } GROUP BY ?k } }
ondes Martenot
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity ondes Martenot
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:instrument resource:ondes_Martenot . ?a rdf:type ontology:common_name } } . FILTER ( ?v < ?u ) . { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:instrument ?k . ?l rdf:type ontology:common_name . ?k rdf:type ontology:musical_instrument } GROUP BY ?k } }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q748455 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q173453 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q862501
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P1303 resource:Q862501 . ?a rdf:type ontology:Q502895 } } . FILTER ( ?v < ?u ) . { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P1303 ?k . ?l rdf:type ontology:Q502895 . ?k rdf:type ontology:Q34379 } GROUP BY ?k } }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument spoon Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta cajón gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales wind instrument Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
davul Wurlitzer electric piano Bendir
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity ondes Martenot
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:instrument resource:ondes_Martenot . ?a rdf:type ontology:common_name } } . FILTER ( ?v < ?u ) . { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:instrument ?k . ?l rdf:type ontology:common_name . ?k rdf:type ontology:musical_instrument } GROUP BY ?k } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q746667 Q192816
P2348
Q3024240
USER
Which former countries did Saint Barbara and Maternus Cynegius take place ?
AND((Q192816,P2348,c(Q3024240)), (Q746667,P2348,c(Q3024240)))
action filter_type
action intersection
action find
entity Q192816
relation P2348
action find
entity Q746667
relation P2348
type Q3024240
{'AND': [['Q192816', 'P2348', {'concept': 'Q3024240'}], ['Q746667', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?t WHERE { resource:Q192816 property:P2348 ?t . resource:Q746667 property:P2348 ?t . ?t rdf:type ontology:Q3024240 }
Maternus Cynegius Saint Barbara
action filter_type
action intersection
action find
entity Saint Barbara
relation period
action find
entity Maternus Cynegius
relation period
type former country
{'AND': [['Saint Barbara', 'period', {'concept': 'former country'}], ['Maternus Cynegius', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?t WHERE { resource:Saint_Barbara property:period ?t . resource:Maternus_Cynegius property:period ?t . ?t rdf:type ontology:former_country }
[]
former country
Q2277
SYSTEM
Roman Empire
Q2277
AND((Q192816,P2348,c(Q3024240)), (Q746667,P2348,c(Q3024240)))
action filter_type
action intersection
action find
entity Q192816
relation P2348
action find
entity Q746667
relation P2348
type Q3024240
Place Saint Barbara and Maternus Cynegius took the [ANSWER]
{'AND': [['Q192816', 'P2348', {'concept': 'Q3024240'}], ['Q746667', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?t WHERE { resource:Q192816 property:P2348 ?t . resource:Q746667 property:P2348 ?t . ?t rdf:type ontology:Q3024240 }
Roman Empire
Place Saint Barbara and Maternus Cynegius took the Roman Empire
Roman Empire
action filter_type
action intersection
action find
entity Saint Barbara
relation period
action find
entity Maternus Cynegius
relation period
type former country
{'AND': [['Saint Barbara', 'period', {'concept': 'former country'}], ['Maternus Cynegius', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?t WHERE { resource:Saint_Barbara property:period ?t . resource:Maternus_Cynegius property:period ?t . ?t rdf:type ontology:former_country }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P122
Q1307214 Q28108 Q3024240
USER
How many former countries have more number of forms of government and political systems as the type of government than that former country ?
(c(Q3024240),P122,c(Q1307214)|c(Q28108))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q3024240
type Q1307214
action find_tuple_counts
relation P122
type Q3024240
type Q28108
action count
action filter_multi_types
action find
entity Q2277
relation P122
type Q1307214
type Q28108
[{'concept': 'Q3024240'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q28108'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Q2277 property:P122 ?k . { VALUES ( ?a ) { ( ontology:Q1307214 ) ( ontology:Q28108 ) } . ?k rdf:type ?a } } } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?p WHERE { { ?p rdf:type ontology:Q3024240 . ?z rdf:type ontology:Q1307214 . ?p property:P122 ?z } UNION { ?p property:P122 ?z . ?p rdf:type ontology:Q3024240 . ?z rdf:type ontology:Q28108 } } GROUP BY ?p } }
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type former country
type form of government
action find_tuple_counts
relation basic form of government
type former country
type political system
action count
action filter_multi_types
action find
entity Roman Empire
relation basic form of government
type form of government
type political system
[{'concept': 'former country'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'political system'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Roman_Empire property:basic_form_of_government ?k . { VALUES ( ?a ) { ( ontology:form_of_government ) ( ontology:political_system ) } . ?k rdf:type ?a } } } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?p WHERE { { ?p rdf:type ontology:former_country . ?z rdf:type ontology:form_of_government . ?p property:basic_form_of_government ?z } UNION { ?p property:basic_form_of_government ?z . ?p rdf:type ontology:former_country . ?z rdf:type ontology:political_system } } GROUP BY ?p } }
[]
form of government political system former country
SYSTEM
0
(c(Q3024240),P122,c(Q1307214)|c(Q28108))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q3024240
type Q1307214
action find_tuple_counts
relation P122
type Q3024240
type Q28108
action count
action filter_multi_types
action find
entity Q2277
relation P122
type Q1307214
type Q28108
[ANSWER]
[{'concept': 'Q3024240'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q28108'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Q2277 property:P122 ?k . { VALUES ( ?a ) { ( ontology:Q1307214 ) ( ontology:Q28108 ) } . ?k rdf:type ?a } } } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?p WHERE { { ?p rdf:type ontology:Q3024240 . ?z rdf:type ontology:Q1307214 . ?p property:P122 ?z } UNION { ?p property:P122 ?z . ?p rdf:type ontology:Q3024240 . ?z rdf:type ontology:Q28108 } } GROUP BY ?p } }
0
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type former country
type form of government
action find_tuple_counts
relation basic form of government
type former country
type political system
action count
action filter_multi_types
action find
entity Roman Empire
relation basic form of government
type form of government
type political system
[{'concept': 'former country'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'political system'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Roman_Empire property:basic_form_of_government ?k . { VALUES ( ?a ) { ( ontology:form_of_government ) ( ontology:political_system ) } . ?k rdf:type ?a } } } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?p WHERE { { ?p rdf:type ontology:former_country . ?z rdf:type ontology:form_of_government . ?p property:basic_form_of_government ?z } UNION { ?p property:basic_form_of_government ?z . ?p rdf:type ontology:former_country . ?z rdf:type ontology:political_system } } GROUP BY ?p } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2277
P37
Q34770
USER
What is considered to be the official language of Roman Empire ?
(Q2277,P37,c(Q34770))
action filter_type
action find
entity Q2277
relation P37
type Q34770
['Q2277', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q2277 property:P37 ?z . ?z rdf:type ontology:Q34770 }
Roman Empire
action filter_type
action find
entity Roman Empire
relation official language
type language
['Roman Empire', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Roman_Empire property:official_language ?z . ?z rdf:type ontology:language }
[]
language
Q397
SYSTEM
Latin
Q397
(Q2277,P37,c(Q34770))
action filter_type
action find
entity Q2277
relation P37
type Q34770
Empire [ANSWER] is considered to be the official language of Roman Empire
['Q2277', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q2277 property:P37 ?z . ?z rdf:type ontology:Q34770 }
Latin
Empire Latin is considered to be the official language of Roman Empire
Latin
action filter_type
action find
entity Roman Empire
relation official language
type language
['Roman Empire', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Roman_Empire property:official_language ?z . ?z rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q128538
P138
Q1400264
USER
Which artist collective is named after Luke the Evangelist ?
(c(Q1400264),P138,Q128538)
action filter_type
action find_reverse
entity Q128538
relation P138
type Q1400264
[{'concept': 'Q1400264'}, 'P138', 'Q128538']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q128538 . ?j rdf:type ontology:Q1400264 }
Luke the Evangelist
action filter_type
action find_reverse
entity Luke the Evangelist
relation named after
type artist collective
[{'concept': 'artist collective'}, 'named after', 'Luke the Evangelist']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:Luke_the_Evangelist . ?j rdf:type ontology:artist_collective }
[]
artist collective
Q18508801
SYSTEM
Antwerp Guild of Saint Luke
Q18508801
(c(Q1400264),P138,Q128538)
action filter_type
action find_reverse
entity Q128538
relation P138
type Q1400264
In [ANSWER] is named after Luke the Evangelist
[{'concept': 'Q1400264'}, 'P138', 'Q128538']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q128538 . ?j rdf:type ontology:Q1400264 }
Antwerp Guild of Saint Luke
In Antwerp Guild of Saint Luke is named after Luke the Evangelist
Antwerp Guild of Saint Luke
action filter_type
action find_reverse
entity Luke the Evangelist
relation named after
type artist collective
[{'concept': 'artist collective'}, 'named after', 'Luke the Evangelist']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:Luke_the_Evangelist . ?j rdf:type ontology:artist_collective }
[]