Simple Question (Direct)
Simple Question
Q721606
P21
Q290
USER
What is the sex of Jeff Stans ?
(Q721606,P21,c(Q290))
action filter_type
action find
entity Q721606
relation P21
type Q290
['Q721606', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q721606 property:P21 ?g . ?g rdf:type ontology:Q290 }
Jeff Stans
action filter_type
action find
entity Jeff Stans
relation gender
type sex
['Jeff Stans', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Jeff_Stans property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q721606,P21,c(Q290))
action filter_type
action find
entity Q721606
relation P21
type Q290
The sex of Jeff Stans is a [ANSWER]
['Q721606', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q721606 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
The sex of Jeff Stans is a male
male
action filter_type
action find
entity Jeff Stans
relation gender
type sex
['Jeff Stans', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Jeff_Stans property:gender ?g . ?g rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do approximately 1089 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1089
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?r = 1089 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1089
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?r = 1089 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1089
Approximately 1089 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?r = 1089 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Approximately 1089 people know about davul, harpsichord and Wurlitzer electric piano
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1089
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?r = 1089 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6877436 Q1178361
P495
Q15617994
USER
Which administrative territories are the countries of origin of davul or Miss Sun ?
OR((Q1178361,P495,c(Q15617994)), (Q6877436,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1178361
relation P495
action find
entity Q6877436
relation P495
type Q15617994
{'OR': [['Q1178361', 'P495', {'concept': 'Q15617994'}], ['Q6877436', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1178361 property:P495 ?h } UNION { resource:Q6877436 property:P495 ?h } } . ?h rdf:type ontology:Q15617994 }
Miss Sun davul
action filter_type
action union
action find
entity davul
relation country of origin
action find
entity Miss Sun
relation country of origin
type designation for an administrative territorial entity
{'OR': [['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Miss Sun', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:davul property:country_of_origin ?h } UNION { resource:Miss_Sun property:country_of_origin ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q43
SYSTEM
United States of America, Turkey
Q30 Q43
OR((Q1178361,P495,c(Q15617994)), (Q6877436,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1178361
relation P495
action find
entity Q6877436
relation P495
type Q15617994
[ANSWERS] are the countries of origin of davul or Miss Sun
{'OR': [['Q1178361', 'P495', {'concept': 'Q15617994'}], ['Q6877436', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1178361 property:P495 ?h } UNION { resource:Q6877436 property:P495 ?h } } . ?h rdf:type ontology:Q15617994 }
United States of America Turkey
United States of America and Turkey are the countries of origin of davul or Miss Sun
United States of America Turkey
action filter_type
action union
action find
entity davul
relation country of origin
action find
entity Miss Sun
relation country of origin
type designation for an administrative territorial entity
{'OR': [['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Miss Sun', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:davul property:country_of_origin ?h } UNION { resource:Miss_Sun property:country_of_origin ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6346112 Q721606
P106
Q12737077
USER
Which occupations have Jeff Stans or Kafi Benz as his/her as a career ?
OR((Q721606,P106,c(Q12737077)), (Q6346112,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q721606
relation P106
action find
entity Q6346112
relation P106
type Q12737077
{'OR': [['Q721606', 'P106', {'concept': 'Q12737077'}], ['Q6346112', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q721606 property:P106 ?j } UNION { resource:Q6346112 property:P106 ?j } } . ?j rdf:type ontology:Q12737077 }
Kafi Benz Jeff Stans
action filter_type
action union
action find
entity Jeff Stans
relation occupation
action find
entity Kafi Benz
relation occupation
type occupation
{'OR': [['Jeff Stans', 'occupation', {'concept': 'occupation'}], ['Kafi Benz', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Jeff_Stans property:occupation ?j } UNION { resource:Kafi_Benz property:occupation ?j } } . ?j rdf:type ontology:occupation }
[]
occupation
Q1028181 Q627325 Q36180 Q937857 Q483501
SYSTEM
painter, graphic designer, writer, association football player, artist
Q1028181 Q627325 Q36180 Q937857 Q483501
OR((Q721606,P106,c(Q12737077)), (Q6346112,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q721606
relation P106
action find
entity Q6346112
relation P106
type Q12737077
[ANSWERS] have Jeff Stans or Kafi Benz as his/her as a career
{'OR': [['Q721606', 'P106', {'concept': 'Q12737077'}], ['Q6346112', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q721606 property:P106 ?j } UNION { resource:Q6346112 property:P106 ?j } } . ?j rdf:type ontology:Q12737077 }
painter graphic designer writer association football player artist
Painter, graphic designer, writer, association football player and artist have Jeff Stans or Kafi Benz as his/her as a career
painter graphic designer writer association football player artist
action filter_type
action union
action find
entity Jeff Stans
relation occupation
action find
entity Kafi Benz
relation occupation
type occupation
{'OR': [['Jeff Stans', 'occupation', {'concept': 'occupation'}], ['Kafi Benz', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Jeff_Stans property:occupation ?j } UNION { resource:Kafi_Benz property:occupation ?j } } . ?j rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q11905449
P417
Q502895 Q12737077
USER
Which people are the patron saint of more number of occupations than Anastasi de Lleida ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q11905449
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q11905449 property:P417 ?m . ?m rdf:type ontology:Q502895 } } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P417 ?q . ?q rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?q } }
Anastasi de Lleida
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Anastasi de Lleida
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Anastasi_de_Lleida property:patron_saint ?m . ?m rdf:type ontology:common_name } } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:patron_saint ?q . ?q rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?q } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q11905449
relation P417
type Q502895
[ANSWERS] are the patron saint of more number of occupations than Anastasi de Lleida
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q11905449 property:P417 ?m . ?m rdf:type ontology:Q502895 } } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P417 ?q . ?q rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?q } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the patron saint of more number of occupations than Anastasi de Lleida
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Anastasi de Lleida
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Anastasi_de_Lleida property:patron_saint ?m . ?m rdf:type ontology:common_name } } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:patron_saint ?q . ?q rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?q } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q469978
P417
Q502895 Q12737077
USER
And how about Devota?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q469978
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:P417 ?y . ?y rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Q469978 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?x > ?z ) }
Devota
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Devota
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:patron_saint ?y . ?y rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Devota property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?x > ?z ) }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q469978
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:P417 ?y . ?y rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Q469978 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?x > ?z ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Devota
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:patron_saint ?y . ?y rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Devota property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?x > ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 3811 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3811
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?r ) WHERE { ?o rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?o } GROUP BY ?o } . FILTER ( ?r = 3811 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3811
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?r ) WHERE { ?o rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?o } GROUP BY ?o } . FILTER ( ?r = 3811 ) }
[]
musical instrument common name
Q8355 Q1444
SYSTEM
violin, organ
Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3811
And [ANSWERS] are played by approximately 3811 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?r ) WHERE { ?o rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?o } GROUP BY ?o } . FILTER ( ?r = 3811 ) }
violin organ
And violin and organ are played by approximately 3811 people
violin organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3811
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?r ) WHERE { ?o rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?o } GROUP BY ?o } . FILTER ( ?r = 3811 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2793621
P1303
Q502895
USER
Does Berthold Tours can play those musical instruments ?
(Q2793621,P1303,Q8355) (Q2793621,P1303,Q1444)
action is_in
entity prev_answer
action find
entity Q2793621
relation P1303
['Q2793621', 'P1303', 'Q8355'] ['Q2793621', 'P1303', 'Q1444']
ASK WHERE { VALUES ( ?m ) { ( resource:Q8355 ) ( resource:Q1444 ) } . resource:Q2793621 property:P1303 ?m }
Berthold Tours
action is_in
entity prev_answer
action find
entity Berthold Tours
relation instrument
['Berthold Tours', 'instrument', 'violin'] ['Berthold Tours', 'instrument', 'organ']
ASK WHERE { VALUES ( ?m ) { ( resource:violin ) ( resource:organ ) } . resource:Berthold_Tours property:instrument ?m }
[]
common name
SYSTEM
YES
(Q2793621,P1303,Q8355) (Q2793621,P1303,Q1444)
action is_in
entity prev_answer
action find
entity Q2793621
relation P1303
[ANSWER]
['Q2793621', 'P1303', 'Q8355'] ['Q2793621', 'P1303', 'Q1444']
ASK WHERE { VALUES ( ?m ) { ( resource:Q8355 ) ( resource:Q1444 ) } . resource:Q2793621 property:P1303 ?m }
Yes
action is_in
entity prev_answer
action find
entity Berthold Tours
relation instrument
['Berthold Tours', 'instrument', 'violin'] ['Berthold Tours', 'instrument', 'organ']
ASK WHERE { VALUES ( ?m ) { ( resource:violin ) ( resource:organ ) } . resource:Berthold_Tours property:instrument ?m }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8075698 Q1759986
P17
Q15617994
USER
Which administrative territories are Wurlitzer electric piano or Zwierzyniecki Bridge located in ?
OR((Q1759986,P17,c(Q15617994)), (Q8075698,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q8075698
relation P17
type Q15617994
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q8075698', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1759986 property:P17 ?f } UNION { resource:Q8075698 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Zwierzyniecki Bridge Wurlitzer electric piano
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Zwierzyniecki Bridge
relation country
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Zwierzyniecki Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Wurlitzer_electric_piano property:country ?f } UNION { resource:Zwierzyniecki_Bridge property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q36
SYSTEM
United States of America, Poland
Q30 Q36
OR((Q1759986,P17,c(Q15617994)), (Q8075698,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q8075698
relation P17
type Q15617994
Wurlitzer electric piano or Zwierzyniecki Bridge are located in [ANSWERS]
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q8075698', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1759986 property:P17 ?f } UNION { resource:Q8075698 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
United States of America Poland
Wurlitzer electric piano or Zwierzyniecki Bridge are located in United States of America and Poland
United States of America Poland
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Zwierzyniecki Bridge
relation country
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Zwierzyniecki Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Wurlitzer_electric_piano property:country ?f } UNION { resource:Zwierzyniecki_Bridge property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q20872339
P748
Q1307214 Q701632 Q12737077
USER
How many occupations are appointed by lesser number of forms of government and municipal councils than municipal executive of Woerden ?
(c(Q12737077),P748,c(Q1307214)|c(Q701632))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q20872339
relation P748
type Q1307214
type Q701632
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?h ) WHERE { { ?j property:P748 ?p . ?j rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q1307214 } UNION { ?j property:P748 ?p . ?j rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q701632 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Q20872339 property:P748 ?u . { { ?u rdf:type ontology:Q1307214 } UNION { ?u rdf:type ontology:Q701632 } } } } . FILTER ( ?h < ?k ) }
municipal executive of Woerden
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity municipal executive of Woerden
relation appointed by
type form of government
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?h ) WHERE { { ?j property:appointed_by ?p . ?j rdf:type ontology:occupation . ?p rdf:type ontology:form_of_government } UNION { ?j property:appointed_by ?p . ?j rdf:type ontology:occupation . ?p rdf:type ontology:municipal_council } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:municipal_executive_of_Woerden property:appointed_by ?u . { { ?u rdf:type ontology:form_of_government } UNION { ?u rdf:type ontology:municipal_council } } } } . FILTER ( ?h < ?k ) }
[]
form of government municipal council occupation
SYSTEM
288
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q6865816 Q2666591 Q191954 Q6865958 Q3251824 Q1846384 Q11793630 Q1072417 Q27650822 Q2631987 Q735575 Q2287650 Q737115 Q6578215 Q5333410 Q1146214 Q376006 Q26209348 Q23906787 Q39021 Q6866004 Q261746 Q20867494 Q740126 Q21013163 Q4377222 Q14984399 Q7241304 Q15304810 Q1511951 Q191827 Q1029955 Q1476458 Q15407843 Q2484309 Q642859 Q2012061 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q7444357 Q967762 Q7444352 Q15305714 Q3246797 Q1749063 Q1371091 Q3315116 Q655407 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q6572133 Q796593 Q6865833 Q2660943 Q1006398 Q6865770 Q940135 Q20172329 Q531471 Q274948 Q2305968 Q596123 Q7444340 Q1723031 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3058109 Q3858507 Q1655971 Q12270252 Q2419581 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q273884 Q208487 Q4294939 Q25863345 Q3477306 Q866756 Q20130623 Q1054799 Q2747647 Q6866295 Q2390270 Q13527933 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q1043568 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q862559 Q3564227 Q13645132 Q636207 Q475658 Q7574264 Q6866264 Q6865750 Q7240360 Q2003296 Q182762 Q20859386 Q967750 Q16933549 Q18694351 Q500282 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q1060844 Q687075 Q3397406 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q691615 Q866680 Q20181946 Q21098108 Q839078 Q838380 Q3251779 Q783785 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q152814 Q1072415 Q26000995 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q195965 Q6123144 Q327948 Q1763459 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1975365 Q1591470 Q609884 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q1123764 Q735015 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q1029968 Q2297543 Q4122271 Q2505890 Q967737 Q6865756 Q13423495 Q795477 Q1370482 Q6866148 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3315134 Q3259469 Q1819381 Q1052201 Q7574256 Q6542448 Q2301213 Q5097071 Q20748654 Q19328451 Q6865981 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q6468838 Q1362216 Q839139 Q3251807 Q13526082 Q1074656 Q6866016 Q735587 Q592866 Q1790154 Q6866422 Q81066 Q3251818 Q6866427 Q1658460 Q628102 Q17058425 Q6865902 Q738695 Q20128098 Q844587 Q786242 Q25860233 Q20877172 Q1434880 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q1307214)|c(Q701632))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q20872339
relation P748
type Q1307214
type Q701632
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?h ) WHERE { { ?j property:P748 ?p . ?j rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q1307214 } UNION { ?j property:P748 ?p . ?j rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q701632 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Q20872339 property:P748 ?u . { { ?u rdf:type ontology:Q1307214 } UNION { ?u rdf:type ontology:Q701632 } } } } . FILTER ( ?h < ?k ) }
Minister of Transport Superintendent of Finance of the United States member of the Provincial Executive of Utrecht Minister of International Trade President of the Treasury Board Prime Minister of India President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect Minister for Education and Skills Chair of the Federal Reserve President of the French Republic Minister for Social Protection Minister of Natural Resources Secretary of State for Wales governor of national banks of Serbia and Yugoslavia Chief of Staff of the United States Air Force King's Commissioner of Utrecht Attorney General for England and Wales Prime Minister of Pakistan United States Secretary of the Interior Prime Minister of Estonia Premier of Saskatchewan Economic Secretary to the Treasury Tánaiste Prime Minister of Guyana Mayor of Warffum Bishop of Nevers President of Singapore Minister for the Environment, Community and Local Government United States Secretary of the Air Force Mayor of Gorinchem President of the European Parliament Mayor of The Hague Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Prime Minister of Romania Prime Minister of South Africa Taoiseach United States Secretary of Agriculture European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department United States Secretary of Homeland Security Leader of the House of Lords Mayor of Eindhoven Bishop of Versailles Prime Minister of Iceland President pro tempore of the United States Senate Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Mayor of Rotterdam Secretary of State for Work and Pensions United States Secretary of Education Secretary of State for International Development Prime Minister of Libya Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Serbia Prime Minister of Thailand President of Botswana Federal Chancellor of Germany State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly Governor of İstanbul President of Malta Minister for Finance Minister for Foreign Affairs Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources United States Secretary of the Navy Mayor of Hoogland Chancellor of the Exchequer Prime Minister of Japan United States Secretary of Health and Human Services president of Bangladesh Secretary of State for Dominion Affairs Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Prime Minister of Iraq Minister responsible for the Status of Women Minister of External Affairs President of Algeria Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick United States Secretary of Housing and Urban Development Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia President of South Africa Prime Minister of Israel Minister of Agriculture Secretary of State for International Trade Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland Secretary of State for Defence Minister of Public Services and Procurement Treasurer of Australia Premier of Tasmania Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Mayor of Almere President of India Premier of Ontario Minister of Transport Prime Minister of Vietnam speaker of the United States House of Representatives Minister of Fisheries and Oceans member of the Provincial Executive of South Holland Mayor of Leersum Minister for Finance Prime Minister of Malaysia Auditor General of Canada Lord Mayor of Dublin United States Attorney General President of Austria Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia United States Secretary of Commerce Prime Minister of Algeria Mayor of Mierlo United States Secretary of Labor President of the Generalitat of Catalonia Minister of Communications President of Nigeria President of Pakistan Lord Mayor of London President of the Government of Morocco Prime Minister of Slovakia President of the European Commission Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Paymaster General Prime Minister of Sweden Secretary of State for Health Cathaoirleach King's or Queen's Commissioner Minister of the Environment Prime Minister of France King's Commissioner of North Holland Governor of the Virgin Islands President of Vietnam Mayor of Borger-Odoorn Mayor of Amersfoort Prime Minister of Canada President of Iran Minister of Industry Chief of Staff of the United States Army Chief Minister Premier of Quebec Attorney-General of Australia Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Chief of Naval Operations President of the Parliament of Catalonia Minister of Citizenship and Immigration President of Greece Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Governor of Gibraltar Secretary of State of Puerto Rico President of Israel Chairman of the Joint Chiefs of Staff Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health President of Somalia United States Postmaster General Prime Minister of Georgia United States Secretary of the Army First Lord of the Treasury Premier of Victoria Chief Executive of Hong Kong Minister for Defence Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia United States Secretary of Defense Prime Minister of Fiji Chairman of the Communist Party of China president of FIFA Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Minister for Defence New York City Fire Commissioner Commonwealth Secretary-General President of Finland president of Tajikistan United States Secretary of Energy United States Deputy Secretary of Defense Premier of the People's Republic of China Leader of the Government in the House of Commons United States Secretary of Transportation Minister for Children and Youth Affairs Mayor of Amsterdam Prime Minister of Denmark President of Cuba Minister of Foreign Affairs Prime Minister of Albania Prime Minister of New Zealand President of Paraguay President of Germany Minister of Health Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Prime Minister of Poland President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives Librarian of Congress United States Deputy Secretary of State Chief of the Secret Intelligence Service Mayor of Zoetermeer Mayor of Haarlem Minister for Transport, Tourism and Sport Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy President of Slovakia First Minister of Scotland President of Romania Minister of Veterans Affairs Premier of Queensland Prime Minister of Papua New Guinea Minister for the purposes of the Atlantic Canada Opportunities Agency Act President of the European Council Prime Minister of Tuvalu Chief Minister of Delhi Minister of Western Economic Diversification United Nations Secretary-General Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec United States Secretary of Veterans Affairs President of Nauru Mayor of Coevorden Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Mayor of Deventer Prime Minister of Spain White House Chief of Staff Secretary of State for Exiting the European Union bishop of Amiens Surgeon General of the United States Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan Chief Minister of the Northern Territory
288
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity municipal executive of Woerden
relation appointed by
type form of government
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?h ) WHERE { { ?j property:appointed_by ?p . ?j rdf:type ontology:occupation . ?p rdf:type ontology:form_of_government } UNION { ?j property:appointed_by ?p . ?j rdf:type ontology:occupation . ?p rdf:type ontology:municipal_council } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:municipal_executive_of_Woerden property:appointed_by ?u . { { ?u rdf:type ontology:form_of_government } UNION { ?u rdf:type ontology:municipal_council } } } } . FILTER ( ?h < ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q213107
P748
Q1307214 Q701632 Q12737077
USER
And also tell me about Prime Minister of Belgium?
(c(Q12737077),P748,c(Q1307214)|c(Q701632))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q213107
relation P748
type Q1307214
type Q701632
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?o WHERE { VALUES ( ?i ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } . ?e rdf:type ?i } GROUP BY ?o } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q213107 property:P748 ?u . { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } } } } }
Prime Minister of Belgium
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Prime Minister of Belgium
relation appointed by
type form of government
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?o WHERE { VALUES ( ?i ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } . ?e rdf:type ?i } GROUP BY ?o } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Prime_Minister_of_Belgium property:appointed_by ?u . { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } } } } }
[]
form of government municipal council occupation
SYSTEM
288
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q6865816 Q2666591 Q191954 Q6865958 Q3251824 Q1846384 Q11793630 Q1072417 Q27650822 Q2631987 Q735575 Q2287650 Q737115 Q6578215 Q5333410 Q1146214 Q376006 Q26209348 Q23906787 Q39021 Q6866004 Q261746 Q20867494 Q740126 Q21013163 Q4377222 Q14984399 Q7241304 Q15304810 Q1511951 Q191827 Q1029955 Q1476458 Q15407843 Q2484309 Q642859 Q2012061 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q7444357 Q967762 Q7444352 Q15305714 Q3246797 Q1749063 Q1371091 Q3315116 Q655407 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q6572133 Q796593 Q6865833 Q2660943 Q1006398 Q6865770 Q940135 Q20172329 Q531471 Q274948 Q2305968 Q596123 Q7444340 Q1723031 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3058109 Q3858507 Q1655971 Q12270252 Q2419581 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q273884 Q208487 Q4294939 Q25863345 Q3477306 Q866756 Q20130623 Q1054799 Q2747647 Q6866295 Q2390270 Q13527933 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q1043568 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q862559 Q3564227 Q13645132 Q636207 Q475658 Q7574264 Q6866264 Q6865750 Q7240360 Q2003296 Q182762 Q20859386 Q967750 Q16933549 Q18694351 Q500282 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q1060844 Q687075 Q3397406 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q691615 Q866680 Q20181946 Q21098108 Q839078 Q838380 Q3251779 Q783785 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q152814 Q1072415 Q26000995 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q195965 Q6123144 Q327948 Q1763459 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1975365 Q1591470 Q609884 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q1123764 Q735015 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q1029968 Q2297543 Q4122271 Q2505890 Q967737 Q6865756 Q13423495 Q795477 Q1370482 Q6866148 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3315134 Q3259469 Q1819381 Q1052201 Q7574256 Q6542448 Q2301213 Q5097071 Q20748654 Q19328451 Q6865981 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q6468838 Q1362216 Q839139 Q3251807 Q13526082 Q1074656 Q6866016 Q735587 Q592866 Q1790154 Q6866422 Q81066 Q3251818 Q6866427 Q1658460 Q628102 Q17058425 Q6865902 Q738695 Q20128098 Q844587 Q786242 Q25860233 Q20877172 Q1434880 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q1307214)|c(Q701632))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q213107
relation P748
type Q1307214
type Q701632
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?o WHERE { VALUES ( ?i ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } . ?e rdf:type ?i } GROUP BY ?o } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q213107 property:P748 ?u . { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } } } } }
Minister of Transport Superintendent of Finance of the United States member of the Provincial Executive of Utrecht Minister of International Trade President of the Treasury Board Prime Minister of India President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect Minister for Education and Skills Chair of the Federal Reserve President of the French Republic Minister for Social Protection Minister of Natural Resources Secretary of State for Wales governor of national banks of Serbia and Yugoslavia Chief of Staff of the United States Air Force King's Commissioner of Utrecht Attorney General for England and Wales Prime Minister of Pakistan United States Secretary of the Interior Prime Minister of Estonia Premier of Saskatchewan Economic Secretary to the Treasury Tánaiste Prime Minister of Guyana Mayor of Warffum Bishop of Nevers President of Singapore Minister for the Environment, Community and Local Government United States Secretary of the Air Force Mayor of Gorinchem President of the European Parliament Mayor of The Hague Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Prime Minister of Romania Prime Minister of South Africa Taoiseach United States Secretary of Agriculture European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department United States Secretary of Homeland Security Leader of the House of Lords Mayor of Eindhoven Bishop of Versailles Prime Minister of Iceland President pro tempore of the United States Senate Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Mayor of Rotterdam Secretary of State for Work and Pensions United States Secretary of Education Secretary of State for International Development Prime Minister of Libya Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Serbia Prime Minister of Thailand President of Botswana Federal Chancellor of Germany State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly Governor of İstanbul President of Malta Minister for Finance Minister for Foreign Affairs Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources United States Secretary of the Navy Mayor of Hoogland Chancellor of the Exchequer Prime Minister of Japan United States Secretary of Health and Human Services president of Bangladesh Secretary of State for Dominion Affairs Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Prime Minister of Iraq Minister responsible for the Status of Women Minister of External Affairs President of Algeria Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick United States Secretary of Housing and Urban Development Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia President of South Africa Prime Minister of Israel Minister of Agriculture Secretary of State for International Trade Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland Secretary of State for Defence Minister of Public Services and Procurement Treasurer of Australia Premier of Tasmania Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Mayor of Almere President of India Premier of Ontario Minister of Transport Prime Minister of Vietnam speaker of the United States House of Representatives Minister of Fisheries and Oceans member of the Provincial Executive of South Holland Mayor of Leersum Minister for Finance Prime Minister of Malaysia Auditor General of Canada Lord Mayor of Dublin United States Attorney General President of Austria Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia United States Secretary of Commerce Prime Minister of Algeria Mayor of Mierlo United States Secretary of Labor President of the Generalitat of Catalonia Minister of Communications President of Nigeria President of Pakistan Lord Mayor of London President of the Government of Morocco Prime Minister of Slovakia President of the European Commission Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Paymaster General Prime Minister of Sweden Secretary of State for Health Cathaoirleach King's or Queen's Commissioner Minister of the Environment Prime Minister of France King's Commissioner of North Holland Governor of the Virgin Islands President of Vietnam Mayor of Borger-Odoorn Mayor of Amersfoort Prime Minister of Canada President of Iran Minister of Industry Chief of Staff of the United States Army Chief Minister Premier of Quebec Attorney-General of Australia Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Chief of Naval Operations President of the Parliament of Catalonia Minister of Citizenship and Immigration President of Greece Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Governor of Gibraltar Secretary of State of Puerto Rico President of Israel Chairman of the Joint Chiefs of Staff Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health President of Somalia United States Postmaster General Prime Minister of Georgia United States Secretary of the Army First Lord of the Treasury Premier of Victoria Chief Executive of Hong Kong Minister for Defence Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia United States Secretary of Defense Prime Minister of Fiji Chairman of the Communist Party of China president of FIFA Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Minister for Defence New York City Fire Commissioner Commonwealth Secretary-General President of Finland president of Tajikistan United States Secretary of Energy United States Deputy Secretary of Defense Premier of the People's Republic of China Leader of the Government in the House of Commons United States Secretary of Transportation Minister for Children and Youth Affairs Mayor of Amsterdam Prime Minister of Denmark President of Cuba Minister of Foreign Affairs Prime Minister of Albania Prime Minister of New Zealand President of Paraguay President of Germany Minister of Health Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Prime Minister of Poland President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives Librarian of Congress United States Deputy Secretary of State Chief of the Secret Intelligence Service Mayor of Zoetermeer Mayor of Haarlem Minister for Transport, Tourism and Sport Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy President of Slovakia First Minister of Scotland President of Romania Minister of Veterans Affairs Premier of Queensland Prime Minister of Papua New Guinea Minister for the purposes of the Atlantic Canada Opportunities Agency Act President of the European Council Prime Minister of Tuvalu Chief Minister of Delhi Minister of Western Economic Diversification United Nations Secretary-General Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec United States Secretary of Veterans Affairs President of Nauru Mayor of Coevorden Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Mayor of Deventer Prime Minister of Spain White House Chief of Staff Secretary of State for Exiting the European Union bishop of Amiens Surgeon General of the United States Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan Chief Minister of the Northern Territory
288
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Prime Minister of Belgium
relation appointed by
type form of government
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?o WHERE { VALUES ( ?i ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } . ?e rdf:type ?i } GROUP BY ?o } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Prime_Minister_of_Belgium property:appointed_by ?u . { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q229480 Q60059
P50 P674
Q223393
USER
Which literary genres are Albertus Magnus a character of or are written by Willa Cather ?
OR((c(Q223393),P674,Q60059), (c(Q223393),P50,Q229480))
action filter_type
action union
action find_reverse
entity Q60059
relation P674
action find_reverse
entity Q229480
relation P50
type Q223393
{'OR': [[{'concept': 'Q223393'}, 'P674', 'Q60059'], [{'concept': 'Q223393'}, 'P50', 'Q229480']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q223393 . { { ?m property:P50 resource:Q229480 } UNION { ?m property:P674 resource:Q60059 } } }
Willa Cather Albertus Magnus
action filter_type
action union
action find_reverse
entity Albertus Magnus
relation characters
action find_reverse
entity Willa Cather
relation author
type literary genre
{'OR': [[{'concept': 'literary genre'}, 'characters', 'Albertus Magnus'], [{'concept': 'literary genre'}, 'author', 'Willa Cather']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:literary_genre . { { ?m property:author resource:Willa_Cather } UNION { ?m property:characters resource:Albertus_Magnus } } }
[]
literary genre
Q4880901 Q7730078 Q7758463 Q7882832 Q16209849 Q40185 Q7733583 Q7091331 Q7766975 Q4659200
SYSTEM
Some of them are Behind the Singer Tower, The Diamond Mine, The Prodigies, Uncle Valentine, Nanette: An Aside, The Divine Comedy, The Fear That Walks by Noonday, On the Divide, The Strategy of the Were-Wolf Dog, A Resurrection
Q7882832 Q4880901 Q7773924 Q4659667 Q7720635 Q7091376 Q7148896 Q7770043 Q7091331 Q6988140 Q16386775 Q5732174 Q7758489 Q7763316 Q7172423 Q7750416 Q7728816 Q4660515 Q6110881 Q7730078 Q7753071 Q4658581 Q7758484 Q5151896 Q7712755 Q7819147 Q5458064 Q5162876 Q7719345 Q7727754 Q4656361 Q7735825 Q7743710 Q5351161 Q5386719 Q40185 Q7775003 Q4659967 Q7719030 Q7727527 Q7762732 Q7758288 Q7758463 Q7766975 Q7733583 Q286620 Q5299670 Q4787992 Q4659200 Q7731987 Q5354204 Q16209849
OR((c(Q223393),P674,Q60059), (c(Q223393),P50,Q229480))
action filter_type
action union
action find_reverse
entity Q60059
relation P674
action find_reverse
entity Q229480
relation P50
type Q223393
[ANSWERS] are Albertus Magnus a character of or are written by Willa Cather
{'OR': [[{'concept': 'Q223393'}, 'P674', 'Q60059'], [{'concept': 'Q223393'}, 'P50', 'Q229480']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q223393 . { { ?m property:P50 resource:Q229480 } UNION { ?m property:P674 resource:Q60059 } } }
Uncle Valentine Behind the Singer Tower The Way of the World A Son of the Celestial The Burglar's Christmas On the Gulls' Road Paul's Case The Treasure of Far Island On the Divide Neighbour Rosicky Lou, the Prophet Her Boss The Profile The Sentimentality of William Tavener Peter The Marriage of Phaedra The Dance at Chevalier's A Wagner Matinee Jack-a-Boy The Diamond Mine The Namesake A Night at Greenway Court The Professor's Commencement Coming, Eden Bower! The Affair at Grover Station Tommy, the Unsentimental Flavia and Her Artists Consequences The Bookkeeper's Wife The Count of Crow's Nest A Death in the Desert The Garden Lodge The Joy of Nelly Deane El Dorado: A Kansas Recessional Eric Hermannson's Soul The Divine Comedy The Willing Muse A Tale of the White Pyramid The Bohemian Girl The Conversion of Sum Loo The Sculptor's Funeral The Princess Baladina – Her Adventure The Prodigies The Strategy of the Were-Wolf Dog The Fear That Walks by Noonday Scandal Double Birthday Ardessa A Resurrection The Enchanted Bluff Eleanor's House Nanette: An Aside
Behind the Singer Tower, The Diamond Mine, The Prodigies, Uncle Valentine, Nanette: An Aside, The Divine Comedy, The Fear That Walks by Noonday, On the Divide, The Strategy of the Were-Wolf Dog and A Resurrection are Albertus Magnus a character of or are written by Willa Cather
Behind the Singer Tower The Diamond Mine The Prodigies Uncle Valentine Nanette: An Aside The Divine Comedy The Fear That Walks by Noonday On the Divide The Strategy of the Were-Wolf Dog A Resurrection
action filter_type
action union
action find_reverse
entity Albertus Magnus
relation characters
action find_reverse
entity Willa Cather
relation author
type literary genre
{'OR': [[{'concept': 'literary genre'}, 'characters', 'Albertus Magnus'], [{'concept': 'literary genre'}, 'author', 'Willa Cather']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:literary_genre . { { ?m property:author resource:Willa_Cather } UNION { ?m property:characters resource:Albertus_Magnus } } }
[]