Simple Question (Direct)
Simple Question
Q15854511
P21
Q290
USER
What is the sex of Wilhelm Marhold ?
(Q15854511,P21,c(Q290))
action filter_type
action find
entity Q15854511
relation P21
type Q290
['Q15854511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q15854511 property:P21 ?j . ?j rdf:type ontology:Q290 }
Wilhelm Marhold
action filter_type
action find
entity Wilhelm Marhold
relation gender
type sex
['Wilhelm Marhold', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Wilhelm_Marhold property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15854511,P21,c(Q290))
action filter_type
action find
entity Q15854511
relation P21
type Q290
The sex of Wilhelm Marhold is the [ANSWER]
['Q15854511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q15854511 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of Wilhelm Marhold is the male
male
action filter_type
action find
entity Wilhelm Marhold
relation gender
type sex
['Wilhelm Marhold', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Wilhelm_Marhold property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15854511
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q15854511
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q15854511 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Wilhelm Marhold
action filter_type
action find
entity Wilhelm Marhold
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Wilhelm_Marhold property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q82955 Q1622272 Q2640827
SYSTEM
politician, university teacher, gynaecologist
Q82955 Q1622272 Q2640827
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q15854511
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q15854511 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
politician university teacher gynaecologist
The professions of that person are politician, university teacher and gynaecologist
politician university teacher gynaecologist
action filter_type
action find
entity Wilhelm Marhold
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Wilhelm_Marhold property:occupation ?q . ?q rdf:type ontology:occupation }
[]
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 saints 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 ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?e ) WHERE { ?n property:P417 ?z . ?z rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?z } . FILTER ( ?e = 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 ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?e ) WHERE { ?n property:patron_saint ?z . ?z rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?z } . FILTER ( ?e = 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 ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?e ) WHERE { ?n property:P417 ?z . ?z rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?z } . FILTER ( ?e = 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 ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?e ) WHERE { ?n property:patron_saint ?z . ?z rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?z } . FILTER ( ?e = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82955
P921
Q223393
USER
Which literary genre has politician as its principal topic ?
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q82955 . ?r rdf:type ontology:Q223393 }
politician
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:politician . ?r rdf:type ontology:literary_genre }
[]
literary genre
Q21815179
SYSTEM
worldstatesmen
Q21815179
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[ANSWER] has politician as its principal topic
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q82955 . ?r rdf:type ontology:Q223393 }
worldstatesmen
Worldstatesmen has politician as its principal topic
worldstatesmen
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:politician . ?r rdf:type ontology:literary_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Who has that one as the associated field of occupation ?
(Q21815179,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q21815179', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q3769299 . resource:Q82955 property:P425 ?k }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['worldstatesmen', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:human_behaviour . resource:politician property:field_of_this_occupation ?k }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q21815179,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
[ANSWER] has that one as the associated field of occupation
['Q21815179', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q3769299 . resource:Q82955 property:P425 ?k }
politics
Politics has that one as the associated field of occupation
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['worldstatesmen', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:human_behaviour . resource:politician property:field_of_this_occupation ?k }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1771157 Q15854511
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Wilhelm Marhold or share border with Alfara del Patriarca ?
OR((Q15854511,P27,c(Q1048835)), (Q1771157,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q15854511
relation P27
action find
entity Q1771157
relation P47
type Q1048835
{'OR': [['Q15854511', 'P27', {'concept': 'Q1048835'}], ['Q1771157', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1771157 property:P47 ?k } UNION { resource:Q15854511 property:P27 ?k } } . ?k rdf:type ontology:Q1048835 }
Alfara del Patriarca Wilhelm Marhold
action filter_type
action union
action find
entity Wilhelm Marhold
relation country of citizenship
action find
entity Alfara del Patriarca
relation shares border with
type political territorial entity
{'OR': [['Wilhelm Marhold', 'country of citizenship', {'concept': 'political territorial entity'}], ['Alfara del Patriarca', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Alfara_del_Patriarca property:shares_border_with ?k } UNION { resource:Wilhelm_Marhold property:country_of_citizenship ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q668117 Q1982784 Q40 Q1010291
SYSTEM
Foios, Vinalesa, Austria, Moncada
Q668117 Q1982784 Q40 Q1010291
OR((Q15854511,P27,c(Q1048835)), (Q1771157,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q15854511
relation P27
action find
entity Q1771157
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Wilhelm Marhold or share border with Alfara del Patriarca
{'OR': [['Q15854511', 'P27', {'concept': 'Q1048835'}], ['Q1771157', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1771157 property:P47 ?k } UNION { resource:Q15854511 property:P27 ?k } } . ?k rdf:type ontology:Q1048835 }
Foios Vinalesa Austria Moncada
Foios, Vinalesa, Austria and Moncada are the countries of citizenship of Wilhelm Marhold or share border with Alfara del Patriarca
Foios Vinalesa Austria Moncada
action filter_type
action union
action find
entity Wilhelm Marhold
relation country of citizenship
action find
entity Alfara del Patriarca
relation shares border with
type political territorial entity
{'OR': [['Wilhelm Marhold', 'country of citizenship', {'concept': 'political territorial entity'}], ['Alfara del Patriarca', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Alfara_del_Patriarca property:shares_border_with ?k } UNION { resource:Wilhelm_Marhold property:country_of_citizenship ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4009406 Q82955
P106
Q502895
USER
Which people have career as politician and sprinter ?
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q4009406))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q4009406
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q4009406']]}
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q82955 . ?l property:P106 resource:Q4009406 . ?l rdf:type ontology:Q502895 }
sprinter politician
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity sprinter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'sprinter']]}
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:politician . ?l property:occupation resource:sprinter . ?l rdf:type ontology:common_name }
[]
common name
Q311366 Q62294 Q517243 Q5444 Q2118622 Q248021 Q312440 Q57243 Q642041 Q336071
SYSTEM
Some of them are Ato Boldon, Ingrid Becker, Ralph Metcalfe, Pietro Mennea, Vasilis Papageorgopoulos, Menzies Campbell, Valeriy Borzov, Heike Drechsler, Voitto Hellstén, Arthur Porritt, Baron Porritt
Q153167 Q248021 Q312440 Q237002 Q57243 Q311366 Q642041 Q11728042 Q517243 Q5444 Q6829302 Q336071 Q5398120 Q2118622 Q62294 Q67787 Q3072257
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q4009406))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q4009406
relation P106
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q4009406']]}
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q82955 . ?l property:P106 resource:Q4009406 . ?l rdf:type ontology:Q502895 }
Valdas Adamkus Menzies Campbell Valeriy Borzov Ana Guevara Heike Drechsler Ato Boldon Voitto Hellstén Jolanta Barska Ralph Metcalfe Pietro Mennea Michael Cleary Arthur Porritt, Baron Porritt Aarno Niini Vasilis Papageorgopoulos Ingrid Becker Gisela Birkemeyer Johanna Manninen
Ato Boldon, Ingrid Becker, Ralph Metcalfe, Pietro Mennea, Vasilis Papageorgopoulos, Menzies Campbell, Valeriy Borzov, Heike Drechsler, Voitto Hellstén and Arthur Porritt, Baron Porritt have career as politician and sprinter
Ato Boldon Ingrid Becker Ralph Metcalfe Pietro Mennea Vasilis Papageorgopoulos Menzies Campbell Valeriy Borzov Heike Drechsler Voitto Hellstén Arthur Porritt, Baron Porritt
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity sprinter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'sprinter']]}
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:politician . ?l property:occupation resource:sprinter . ?l rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2118622
P6
Q13220204
USER
Which administrative country subdivision has that person as its administrative leader ?
(c(Q13220204),P6,Q2118622)
action filter_type
action find_reverse
entity Q2118622
relation P6
type Q13220204
[{'concept': 'Q13220204'}, 'P6', 'Q2118622']
SELECT DISTINCT ?y WHERE { ?y property:P6 resource:Q2118622 . ?y rdf:type ontology:Q13220204 }
Vasilis Papageorgopoulos
action filter_type
action find_reverse
entity Vasilis Papageorgopoulos
relation head of government
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Vasilis Papageorgopoulos']
SELECT DISTINCT ?y WHERE { ?y property:head_of_government resource:Vasilis_Papageorgopoulos . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q2118622
SYSTEM
Did you mean Vasilis Papageorgopoulos ?
Q311366 Q62294 Q517243 Q5444 Q2118622 Q248021 Q312440 Q57243 Q642041 Q336071
(c(Q13220204),P6,Q311366) (c(Q13220204),P6,Q62294) (c(Q13220204),P6,Q517243) (c(Q13220204),P6,Q5444) (c(Q13220204),P6,Q2118622) (c(Q13220204),P6,Q248021) (c(Q13220204),P6,Q312440) (c(Q13220204),P6,Q57243) (c(Q13220204),P6,Q642041) (c(Q13220204),P6,Q336071)
[ANSWER]
[{'concept': 'Q13220204'}, 'P6', 'Q311366'] [{'concept': 'Q13220204'}, 'P6', 'Q62294'] [{'concept': 'Q13220204'}, 'P6', 'Q517243'] [{'concept': 'Q13220204'}, 'P6', 'Q5444'] [{'concept': 'Q13220204'}, 'P6', 'Q2118622'] [{'concept': 'Q13220204'}, 'P6', 'Q248021'] [{'concept': 'Q13220204'}, 'P6', 'Q312440'] [{'concept': 'Q13220204'}, 'P6', 'Q57243'] [{'concept': 'Q13220204'}, 'P6', 'Q642041'] [{'concept': 'Q13220204'}, 'P6', 'Q336071']
SELECT DISTINCT ?y WHERE { ?y property:P6 resource:Q2118622 . ?y rdf:type ontology:Q13220204 }
Ato Boldon Ingrid Becker Ralph Metcalfe Pietro Mennea Vasilis Papageorgopoulos Menzies Campbell Valeriy Borzov Heike Drechsler Voitto Hellstén Arthur Porritt, Baron Porritt
Did you mean Vasilis Papageorgopoulos ?
Vasilis Papageorgopoulos
[{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Ato Boldon'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Ingrid Becker'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Ralph Metcalfe'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Pietro Mennea'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Vasilis Papageorgopoulos'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Menzies Campbell'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Valeriy Borzov'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Heike Drechsler'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Voitto Hellstén'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Arthur Porritt, Baron Porritt']
SELECT DISTINCT ?y WHERE { ?y property:head_of_government resource:Vasilis_Papageorgopoulos . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q13220204),P6,Q2118622)
[{'concept': 'Q13220204'}, 'P6', 'Q2118622']
[{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Vasilis Papageorgopoulos']
[]
Q6627746
SYSTEM
Municipality of Thessaloniki
Q6627746
(c(Q13220204),P6,Q2118622)
action filter_type
action find_reverse
entity Q2118622
relation P6
type Q13220204
[ANSWER] has that person as its administrative leader
[{'concept': 'Q13220204'}, 'P6', 'Q2118622']
SELECT DISTINCT ?y WHERE { ?y property:P6 resource:Q2118622 . ?y rdf:type ontology:Q13220204 }
Municipality of Thessaloniki
Municipality of Thessaloniki has that person as its administrative leader
Municipality of Thessaloniki
action filter_type
action find_reverse
entity Vasilis Papageorgopoulos
relation head of government
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Vasilis Papageorgopoulos']
SELECT DISTINCT ?y WHERE { ?y property:head_of_government resource:Vasilis_Papageorgopoulos . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]