Simple Question (Direct)
Simple Question
Q18221929
P21
Q290
USER
What is the sex of Marc Gaspard Abraham Paulet de La Bastide ?
(Q18221929,P21,c(Q290))
action filter_type
action find
entity Q18221929
relation P21
type Q290
['Q18221929', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q18221929 property:P21 ?j . ?j rdf:type ontology:Q290 }
Marc Gaspard Abraham Paulet de La Bastide
action filter_type
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation gender
type sex
['Marc Gaspard Abraham Paulet de La Bastide', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18221929,P21,c(Q290))
action filter_type
action find
entity Q18221929
relation P21
type Q290
The sex of Marc Gaspard Abraham Paulet de La Bastide is a [ANSWER]
['Q18221929', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q18221929 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of Marc Gaspard Abraham Paulet de La Bastide is a male
male
action filter_type
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation gender
type sex
['Marc Gaspard Abraham Paulet de La Bastide', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18221929
P410
Q4189293
USER
Which title has Marc Gaspard Abraham Paulet de La Bastide achieved ?
(Q18221929,P410,c(Q4189293))
action filter_type
action find
entity Q18221929
relation P410
type Q4189293
['Q18221929', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?k WHERE { resource:Q18221929 property:P410 ?k . ?k rdf:type ontology:Q4189293 }
Marc Gaspard Abraham Paulet de La Bastide
action filter_type
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation military rank
type title
['Marc Gaspard Abraham Paulet de La Bastide', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?k WHERE { resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide property:military_rank ?k . ?k rdf:type ontology:title }
[]
title
Q152956
SYSTEM
brigadier general
Q152956
(Q18221929,P410,c(Q4189293))
action filter_type
action find
entity Q18221929
relation P410
type Q4189293
The [ANSWER] has Marc Gaspard Abraham Paulet de La Bastide achieved
['Q18221929', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?k WHERE { resource:Q18221929 property:P410 ?k . ?k rdf:type ontology:Q4189293 }
brigadier general
The brigadier general has Marc Gaspard Abraham Paulet de La Bastide achieved
brigadier general
action filter_type
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation military rank
type title
['Marc Gaspard Abraham Paulet de La Bastide', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?k WHERE { resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide property:military_rank ?k . ?k rdf:type ontology:title }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15411292 Q18221929
P27
Q15617994
USER
Which administrative territories do Marc Gaspard Abraham Paulet de La Bastide or Spyridon Prosalentis belong to ?
OR((Q18221929,P27,c(Q15617994)), (Q15411292,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18221929
relation P27
action find
entity Q15411292
relation P27
type Q15617994
{'OR': [['Q18221929', 'P27', {'concept': 'Q15617994'}], ['Q15411292', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?s property:P27 ?n . VALUES ( ?s ) { ( resource:Q18221929 ) ( resource:Q15411292 ) } } . ?n rdf:type ontology:Q15617994 }
Spyridon Prosalentis Marc Gaspard Abraham Paulet de La Bastide
action filter_type
action union
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation country of citizenship
action find
entity Spyridon Prosalentis
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Marc Gaspard Abraham Paulet de La Bastide', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Spyridon Prosalentis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?s property:country_of_citizenship ?n . VALUES ( ?s ) { ( resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide ) ( resource:Spyridon_Prosalentis ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q41
SYSTEM
France, Greece
Q142 Q41
OR((Q18221929,P27,c(Q15617994)), (Q15411292,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18221929
relation P27
action find
entity Q15411292
relation P27
type Q15617994
[ANSWERS] Marc Gaspard Abraham Paulet de La Bastide or Spyrin Prosalentis belong to
{'OR': [['Q18221929', 'P27', {'concept': 'Q15617994'}], ['Q15411292', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?s property:P27 ?n . VALUES ( ?s ) { ( resource:Q18221929 ) ( resource:Q15411292 ) } } . ?n rdf:type ontology:Q15617994 }
France Greece
France and Greece Marc Gaspard Abraham Paulet de La Bastide or Spyrin Prosalentis belong to
France Greece
action filter_type
action union
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation country of citizenship
action find
entity Spyridon Prosalentis
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Marc Gaspard Abraham Paulet de La Bastide', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Spyridon Prosalentis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?s property:country_of_citizenship ?n . VALUES ( ?s ) { ( resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide ) ( resource:Spyridon_Prosalentis ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
How many administrative territories inspired less number of fictional locations than that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|Count over More/Less|Single entity type|Clarification
Q142
SYSTEM
Did you mean France ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean France ?
France
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q55416
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Chioggia
1
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?r ) WHERE { ?m property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?w ) WHERE { ?u property:P530 ?y . ?u rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?w = ?i ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?r ) WHERE { ?m property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?w ) WHERE { ?u property:diplomatic_relation ?y . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?w = ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic associations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?r ) WHERE { ?m property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?w ) WHERE { ?u property:P530 ?y . ?u rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?w = ?i ) }
Georgia
Georgia have diplomatic associations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?r ) WHERE { ?m property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?w ) WHERE { ?u property:diplomatic_relation ?y . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?w = ?i ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230
P6
Q502895
USER
Which people are the head of government of that administrative territory ?
(Q230,P6,c(Q502895))
action filter_type
action find
entity Q230
relation P6
type Q502895
['Q230', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q230 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Georgia
action filter_type
action find
entity Georgia
relation head of government
type common name
['Georgia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Georgia property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
common name
Q57794 Q6066533 Q15277881
SYSTEM
Bidzina Ivanishvili, Irakli Gharibashvili, Giorgi Kvirikashvili
Q57794 Q6066533 Q15277881
(Q230,P6,c(Q502895))
action filter_type
action find
entity Q230
relation P6
type Q502895
[ANSWERS] are the head of government of that administrative territory
['Q230', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q230 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Bidzina Ivanishvili Irakli Gharibashvili Giorgi Kvirikashvili
Bidzina Ivanishvili, Irakli Gharibashvili and Giorgi Kvirikashvili are the head of government of that administrative territory
Bidzina Ivanishvili Irakli Gharibashvili Giorgi Kvirikashvili
action filter_type
action find
entity Georgia
relation head of government
type common name
['Georgia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Georgia property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can exactly 1 person perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?i ) WHERE { ?d rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 . ?t property:P1303 ?d } GROUP BY ?d } }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?i ) WHERE { ?d rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name . ?t property:instrument ?d } GROUP BY ?d } }
[]
musical instrument common name
SYSTEM
33
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?i ) WHERE { ?d rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 . ?t property:P1303 ?d } GROUP BY ?d } }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
33
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?i ) WHERE { ?d rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name . ?t property:instrument ?d } GROUP BY ?d } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q57794
P39
Q12737077
USER
Which occupation was a position occupied by Bidzina Ivanishvili ?
(Q57794,P39,c(Q12737077))
action filter_type
action find
entity Q57794
relation P39
type Q12737077
['Q57794', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q57794 property:P39 ?f }
Bidzina Ivanishvili
action filter_type
action find
entity Bidzina Ivanishvili
relation position held
type occupation
['Bidzina Ivanishvili', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Bidzina_Ivanishvili property:position_held ?f }
[]
occupation
Q1975365
SYSTEM
Prime Minister of Georgia
Q1975365
(Q57794,P39,c(Q12737077))
action filter_type
action find
entity Q57794
relation P39
type Q12737077
[ANSWER] was a position occupied by Bidzina Ivanishvili
['Q57794', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q57794 property:P39 ?f }
Prime Minister of Georgia
Prime Minister of Georgia was a position occupied by Bidzina Ivanishvili
Prime Minister of Georgia
action filter_type
action find
entity Bidzina Ivanishvili
relation position held
type occupation
['Bidzina Ivanishvili', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Bidzina_Ivanishvili property:position_held ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q57794
P140
Q879146
USER
What is the religious affiliation of Bidzina Ivanishvili ?
(Q57794,P140,c(Q879146))
action filter_type
action find
entity Q57794
relation P140
type Q879146
['Q57794', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q879146 . resource:Q57794 property:P140 ?i }
Bidzina Ivanishvili
action filter_type
action find
entity Bidzina Ivanishvili
relation religion
type Christian denomination
['Bidzina Ivanishvili', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Christian_denomination . resource:Bidzina_Ivanishvili property:religion ?i }
[]
Christian denomination
Q192173
SYSTEM
Georgian Orthodox Church
Q192173
(Q57794,P140,c(Q879146))
action filter_type
action find
entity Q57794
relation P140
type Q879146
The religious affiliation of Bidzina Ivanishvili is a [ANSWER]
['Q57794', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q879146 . resource:Q57794 property:P140 ?i }
Georgian Orthodox Church
The religious affiliation of Bidzina Ivanishvili is a Georgian Orthodox Church
Georgian Orthodox Church
action filter_type
action find
entity Bidzina Ivanishvili
relation religion
type Christian denomination
['Bidzina Ivanishvili', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Christian_denomination . resource:Bidzina_Ivanishvili property:religion ?i }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q775597 Q57794
P140
Q879146
USER
Or Aurelio José Kühn Hergenreder?
OR((Q57794,P140,c(Q879146)), (Q775597,P140,c(Q879146)))
action filter_type
action union
action find
entity Q57794
relation P140
action find
entity Q775597
relation P140
type Q879146
{'OR': [['Q57794', 'P140', {'concept': 'Q879146'}], ['Q775597', 'P140', {'concept': 'Q879146'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q879146 . { VALUES ( ?u ) { ( resource:Q57794 ) ( resource:Q775597 ) } . ?u property:P140 ?h } }
Aurelio José Kühn Hergenreder Bidzina Ivanishvili
action filter_type
action union
action find
entity Bidzina Ivanishvili
relation religion
action find
entity Aurelio José Kühn Hergenreder
relation religion
type Christian denomination
{'OR': [['Bidzina Ivanishvili', 'religion', {'concept': 'Christian denomination'}], ['Aurelio José Kühn Hergenreder', 'religion', {'concept': 'Christian denomination'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Christian_denomination . { VALUES ( ?u ) { ( resource:Bidzina_Ivanishvili ) ( resource:Aurelio_José_Kühn_Hergenreder ) } . ?u property:religion ?h } }
[]
Christian denomination
Q192173 Q9592
SYSTEM
Georgian Orthodox Church, Roman Catholic Church
Q192173 Q9592
OR((Q57794,P140,c(Q879146)), (Q775597,P140,c(Q879146)))
action filter_type
action union
action find
entity Q57794
relation P140
action find
entity Q775597
relation P140
type Q879146
[ANSWERS]
{'OR': [['Q57794', 'P140', {'concept': 'Q879146'}], ['Q775597', 'P140', {'concept': 'Q879146'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q879146 . { VALUES ( ?u ) { ( resource:Q57794 ) ( resource:Q775597 ) } . ?u property:P140 ?h } }
Georgian Orthodox Church Roman Catholic Church
Georgian Orthodox Church Roman Catholic Church
action filter_type
action union
action find
entity Bidzina Ivanishvili
relation religion
action find
entity Aurelio José Kühn Hergenreder
relation religion
type Christian denomination
{'OR': [['Bidzina Ivanishvili', 'religion', {'concept': 'Christian denomination'}], ['Aurelio José Kühn Hergenreder', 'religion', {'concept': 'Christian denomination'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Christian_denomination . { VALUES ( ?u ) { ( resource:Bidzina_Ivanishvili ) ( resource:Aurelio_José_Kühn_Hergenreder ) } . ?u property:religion ?h } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the patron saint of exactly 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?f } GROUP BY ?f } . FILTER ( ?j = 1 ) }
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?f } GROUP BY ?f } . FILTER ( ?j = 1 ) }
[]
common name occupation
SYSTEM
38
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?f } GROUP BY ?f } . FILTER ( ?j = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
38
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?f } GROUP BY ?f } . FILTER ( ?j = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18221929
P20
Q20667921
USER
Where did the demise of Marc Gaspard Abraham Paulet de La Bastide occur ?
(Q18221929,P20,c(Q20667921))
action filter_type
action find
entity Q18221929
relation P20
type Q20667921
['Q18221929', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q18221929 property:P20 ?b . ?b rdf:type ontology:Q20667921 }
Marc Gaspard Abraham Paulet de La Bastide
action filter_type
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation place of death
type type of french administrative division
['Marc Gaspard Abraham Paulet de La Bastide', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide property:place_of_death ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q211923
SYSTEM
Les Sables-d'Olonne
Q211923
(Q18221929,P20,c(Q20667921))
action filter_type
action find
entity Q18221929
relation P20
type Q20667921
The demise of Marc Gaspard Abraham Paulet de La Bastide occurred of [ANSWER]
['Q18221929', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q18221929 property:P20 ?b . ?b rdf:type ontology:Q20667921 }
Les Sables-d'Olonne
The demise of Marc Gaspard Abraham Paulet de La Bastide occurred of Les Sables-d'Olonne
Les Sables-d'Olonne
action filter_type
action find
entity Marc Gaspard Abraham Paulet de La Bastide
relation place of death
type type of french administrative division
['Marc Gaspard Abraham Paulet de La Bastide', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Marc_Gaspard_Abraham_Paulet_de_La_Bastide property:place_of_death ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q192173
P159
Q56061
USER
Where is the head office for Georgian Orthodox Church located ?
(Q192173,P159,c(Q56061))
action filter_type
action find
entity Q192173
relation P159
type Q56061
['Q192173', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q192173 property:P159 ?d . ?d rdf:type ontology:Q56061 }
Georgian Orthodox Church
action filter_type
action find
entity Georgian Orthodox Church
relation headquarters location
type administrative territorial entity
['Georgian Orthodox Church', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Georgian_Orthodox_Church property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q994
SYSTEM
Tbilisi
Q994
(Q192173,P159,c(Q56061))
action filter_type
action find
entity Q192173
relation P159
type Q56061
The head office for Georgian Orthodox Church is located in [ANSWER]
['Q192173', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q192173 property:P159 ?d . ?d rdf:type ontology:Q56061 }
Tbilisi
The head office for Georgian Orthodox Church is located in Tbilisi
Tbilisi
action filter_type
action find
entity Georgian Orthodox Church
relation headquarters location
type administrative territorial entity
['Georgian Orthodox Church', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Georgian_Orthodox_Church property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7883547 Q230
P530 P495
Q1048835
USER
Which political territories have a diplomatic relationship with Georgia or are the origins of Undercurrents ?
OR((Q230,P530,c(Q1048835)), (Q7883547,P495,c(Q1048835)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q7883547
relation P495
type Q1048835
{'OR': [['Q230', 'P530', {'concept': 'Q1048835'}], ['Q7883547', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { { resource:Q230 property:P530 ?m } UNION { resource:Q7883547 property:P495 ?m } } }
Undercurrents Georgia
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity Undercurrents
relation country of origin
type political territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Undercurrents', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { { resource:Georgia property:diplomatic_relation ?m } UNION { resource:Undercurrents property:country_of_origin ?m } } }
[]
political territorial entity
Q766 Q183 Q35 Q781 Q408 Q778 Q769 Q664 Q40 Q1000
SYSTEM
Some of them are Jamaica, Germany, Denmark, Antigua and Barbuda, Australia, The Bahamas, Grenada, New Zealand, Austria, Gabon
Q1000 Q40 Q781 Q183 Q778 Q408 Q769 Q35 Q16 Q664 Q766
OR((Q230,P530,c(Q1048835)), (Q7883547,P495,c(Q1048835)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q7883547
relation P495
type Q1048835
[ANSWERS] have a diplomatic relationship with Georgia or are the origins of Undercurrents
{'OR': [['Q230', 'P530', {'concept': 'Q1048835'}], ['Q7883547', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { { resource:Q230 property:P530 ?m } UNION { resource:Q7883547 property:P495 ?m } } }
Gabon Austria Antigua and Barbuda Germany The Bahamas Australia Grenada Denmark Canada New Zealand Jamaica
Jamaica, Germany, Denmark, Antigua and Barbuda, Australia, The Bahamas, Grenada, New Zealand, Austria and Gabon have a diplomatic relationship with Georgia or are the origins of Undercurrents
Jamaica Germany Denmark Antigua and Barbuda Australia The Bahamas Grenada New Zealand Austria Gabon
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity Undercurrents
relation country of origin
type political territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Undercurrents', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { { resource:Georgia property:diplomatic_relation ?m } UNION { resource:Undercurrents property:country_of_origin ?m } } }
[]