Simple Question (Direct)
Simple Question
Q935974
P39
Q12737077
USER
Which occupation was a position occupied by Kullervo Manner ?
(Q935974,P39,c(Q12737077))
action filter_type
action find
entity Q935974
relation P39
type Q12737077
['Q935974', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q935974 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Kullervo Manner
action filter_type
action find
entity Kullervo Manner
relation position held
type occupation
['Kullervo Manner', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Kullervo_Manner property:position_held ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q17592486
SYSTEM
member of the Parliament of Finland
Q17592486
(Q935974,P39,c(Q12737077))
action filter_type
action find
entity Q935974
relation P39
type Q12737077
A [ANSWER] was a position occupied by Kullervo Manner
['Q935974', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q935974 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
member of the Parliament of Finland
A member of the Parliament of Finland was a position occupied by Kullervo Manner
member of the Parliament of Finland
action filter_type
action find
entity Kullervo Manner
relation position held
type occupation
['Kullervo Manner', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Kullervo_Manner property:position_held ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q935974
P937
Q56061
USER
What is the location where Kullervo Manner worked ?
(Q935974,P937,c(Q56061))
action filter_type
action find
entity Q935974
relation P937
type Q56061
['Q935974', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q935974 property:P937 ?a }
Kullervo Manner
action filter_type
action find
entity Kullervo Manner
relation work location
type administrative territorial entity
['Kullervo Manner', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Kullervo_Manner property:work_location ?a }
[]
administrative territorial entity
Q1757
SYSTEM
Helsinki
Q1757
(Q935974,P937,c(Q56061))
action filter_type
action find
entity Q935974
relation P937
type Q56061
The location Kullervo Manner worked is in [ANSWER]
['Q935974', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q935974 property:P937 ?a }
Helsinki
The location Kullervo Manner worked is in Helsinki
Helsinki
action filter_type
action find
entity Kullervo Manner
relation work location
type administrative territorial entity
['Kullervo Manner', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Kullervo_Manner property:work_location ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q935974
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q1757,P19,c(Q56061))
action filter_type
action find
entity Q935974
relation P19
type Q56061
['Q1757', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q935974 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Kullervo Manner
action filter_type
action find
entity Kullervo Manner
relation place of birth
type administrative territorial entity
['Helsinki', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Kullervo_Manner property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q986409
SYSTEM
Kokemäki
Q986409
(Q1757,P19,c(Q56061))
action filter_type
action find
entity Q935974
relation P19
type Q56061
That person was born in [ANSWER]
['Q1757', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q935974 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Kokemäki
That person was born in Kokemäki
Kokemäki
action filter_type
action find
entity Kullervo Manner
relation place of birth
type administrative territorial entity
['Helsinki', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Kullervo_Manner property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q986409 Q1348190
P17
Q15617994
USER
Does that administrative territory belong to Erbach ?
(Q986409,P17,Q1348190)
action is_in
entity Q1348190
action find
entity Q986409
relation P17
['Q986409', 'P17', 'Q1348190']
ASK WHERE { resource:Q986409 property:P17 resource:Q1348190 }
Kokemäki Erbach
action is_in
entity Erbach
action find
entity Kokemäki
relation country
['Kokemäki', 'country', 'Erbach']
ASK WHERE { resource:Kokemäki property:country resource:Erbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q986409,P17,Q1348190)
action is_in
entity Q1348190
action find
entity Q986409
relation P17
[ANSWER]
['Q986409', 'P17', 'Q1348190']
ASK WHERE { resource:Q986409 property:P17 resource:Q1348190 }
No
action is_in
entity Erbach
action find
entity Kokemäki
relation country
['Kokemäki', 'country', 'Erbach']
ASK WHERE { resource:Kokemäki property:country resource:Erbach }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q36180
P921
Q12737077 Q191067 Q732577
USER
Which occupations were the main subjects of approximately the same number of articles or publications 's work as writer ?
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P921
type Q191067
type Q732577
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?t WHERE { { ?z property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q191067 } UNION { ?z property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q732577 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P921 resource:Q36180 . { { ?n rdf:type ontology:Q191067 } UNION { ?n rdf:type ontology:Q732577 } } } } . FILTER ( ?g = ?a ) }
writer
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity writer
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?t WHERE { { ?z property:main_subject ?t . ?t rdf:type ontology:occupation . ?z rdf:type ontology:article } UNION { ?z property:main_subject ?t . ?t rdf:type ontology:occupation . ?z rdf:type ontology:publication } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:main_subject resource:writer . { { ?n rdf:type ontology:article } UNION { ?n rdf:type ontology:publication } } } } . FILTER ( ?g = ?a ) }
[]
occupation article publication
Q131512 Q42973 Q16707842
SYSTEM
farmer, architect, Member of Parliament in the United Kingdom
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P921
type Q191067
type Q732577
[ANSWERS] were the main subjects of approximately the same number of articles or publications 's work as writer
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?t WHERE { { ?z property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q191067 } UNION { ?z property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q732577 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P921 resource:Q36180 . { { ?n rdf:type ontology:Q191067 } UNION { ?n rdf:type ontology:Q732577 } } } } . FILTER ( ?g = ?a ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Farmer, architect and Member of Parliament in the United Kingdom were the main subjects of approximately the same number of articles or publications 's work as writer
farmer architect Member of Parliament in the United Kingdom
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity writer
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?t WHERE { { ?z property:main_subject ?t . ?t rdf:type ontology:occupation . ?z rdf:type ontology:article } UNION { ?z property:main_subject ?t . ?t rdf:type ontology:occupation . ?z rdf:type ontology:publication } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:main_subject resource:writer . { { ?n rdf:type ontology:article } UNION { ?n rdf:type ontology:publication } } } } . FILTER ( ?g = ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q158504
P417
Q502895 Q12737077
USER
How many people are the patron saint of greater number of occupations than Clement of Ohrid ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q158504
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:Q502895 . ?i rdf:type ontology:Q12737077 . ?i property:P417 ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q158504 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?y > ?x ) }
Clement of Ohrid
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Clement of Ohrid
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:common_name . ?i rdf:type ontology:occupation . ?i property:patron_saint ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Clement_of_Ohrid property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?y > ?x ) }
[]
common name occupation
SYSTEM
54
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 count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q158504
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:Q502895 . ?i rdf:type ontology:Q12737077 . ?i property:P417 ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q158504 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?y > ?x ) }
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
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Clement of Ohrid
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:common_name . ?i rdf:type ontology:occupation . ?i property:patron_saint ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Clement_of_Ohrid property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?y > ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q160373
P417
Q502895 Q12737077
USER
And how about Marcellinus?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q160373
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P417 ?o . ?z rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q502895 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Q160373 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?p > ?j ) }
Marcellinus
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Marcellinus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:patron_saint ?o . ?z rdf:type ontology:occupation . ?o rdf:type ontology:common_name } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Marcellinus property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?p > ?j ) }
[]
common name occupation
SYSTEM
54
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 count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q160373
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P417 ?o . ?z rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q502895 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Q160373 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?p > ?j ) }
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
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Marcellinus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:patron_saint ?o . ?z rdf:type ontology:occupation . ?o rdf:type ontology:common_name } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Marcellinus property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?p > ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1757
P1376
Q7269
USER
Which monarchy has Helsinki has its first city ?
(Q1757,P1376,c(Q7269))
action filter_type
action find
entity Q1757
relation P1376
type Q7269
['Q1757', 'P1376', {'concept': 'Q7269'}]
SELECT DISTINCT ?o WHERE { resource:Q1757 property:P1376 ?o . ?o rdf:type ontology:Q7269 }
Helsinki
action filter_type
action find
entity Helsinki
relation capital of
type monarchy
['Helsinki', 'capital of', {'concept': 'monarchy'}]
SELECT DISTINCT ?o WHERE { resource:Helsinki property:capital_of ?o . ?o rdf:type ontology:monarchy }
[]
monarchy
Q62633
SYSTEM
Grand Duchy of Finland
Q62633
(Q1757,P1376,c(Q7269))
action filter_type
action find
entity Q1757
relation P1376
type Q7269
[ANSWER] has Helsinki has its first city
['Q1757', 'P1376', {'concept': 'Q7269'}]
SELECT DISTINCT ?o WHERE { resource:Q1757 property:P1376 ?o . ?o rdf:type ontology:Q7269 }
Grand Duchy of Finland
Grand Duchy of Finland has Helsinki has its first city
Grand Duchy of Finland
action filter_type
action find
entity Helsinki
relation capital of
type monarchy
['Helsinki', 'capital of', {'concept': 'monarchy'}]
SELECT DISTINCT ?o WHERE { resource:Helsinki property:capital_of ?o . ?o rdf:type ontology:monarchy }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q1757
Q7275
USER
And which state?
(Q1757,P1376,c(Q7275))
action filter_type
action find
entity Q1757
relation P1376
type Q7275
['Q1757', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q1757 property:P1376 ?x . ?x rdf:type ontology:Q7275 }
Helsinki
action filter_type
action find
entity Helsinki
relation capital of
type state
['Helsinki', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Helsinki property:capital_of ?x . ?x rdf:type ontology:state }
[]
state
Q62519 Q1811029
SYSTEM
Finnish Democratic Republic, Finnish Socialist Workers' Republic
Q62519 Q1811029
(Q1757,P1376,c(Q7275))
action filter_type
action find
entity Q1757
relation P1376
type Q7275
[ANSWERS]
['Q1757', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q1757 property:P1376 ?x . ?x rdf:type ontology:Q7275 }
Finnish Democratic Republic Finnish Socialist Workers' Republic
Finnish Democratic Republic Finnish Socialist Workers' Republic
action filter_type
action find
entity Helsinki
relation capital of
type state
['Helsinki', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Helsinki property:capital_of ?x . ?x rdf:type ontology:state }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P36
Q56061
USER
How many administrative territories are called the capital of that state ?
(Q62519,P36,c(Q56061))
['Q62519', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q62519 property:Q8137 ?z . ?z rdf:type ontology:Q56061 }
['Finnish Democratic Republic', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Finnish_Democratic_Republic property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1811029
SYSTEM
Did you mean Finnish Socialist Workers' Republic ?
(Q62519,P36,c(Q56061)) (Q1811029,P36,c(Q56061))
[ANSWER]
['Q62519', 'P36', {'concept': 'Q56061'}] ['Q1811029', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q62519 property:Q8137 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Finnish Socialist Workers' Republic ?
Finnish Socialist Workers' Republic
['Finnish Democratic Republic', 'capital', {'concept': 'administrative territorial entity'}] ["Finnish Socialist Workers' Republic", 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Finnish_Democratic_Republic property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Finnish Democratic Republic. Could you tell me the answer for that?
(Q62519,P36,c(Q56061))
Q62519
['Q62519', 'P36', {'concept': 'Q56061'}]
['Finnish Democratic Republic', 'capital', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
1
Q1757
(Q62519,P36,c(Q56061))
[ANSWER]
['Q62519', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q62519 property:Q8137 ?z . ?z rdf:type ontology:Q56061 }
Helsinki
1
['Finnish Democratic Republic', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Finnish_Democratic_Republic property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1757
P112
Q502895
USER
Who was the founder of Helsinki ?
(Q1757,P112,c(Q502895))
action filter_type
action find
entity Q1757
relation P112
type Q502895
['Q1757', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1757 property:P112 ?u . ?u rdf:type ontology:Q502895 }
Helsinki
action filter_type
action find
entity Helsinki
relation founder
type common name
['Helsinki', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Helsinki property:founder ?u . ?u rdf:type ontology:common_name }
[]
common name
Q52947
SYSTEM
Gustav I of Sweden
Q52947
(Q1757,P112,c(Q502895))
action filter_type
action find
entity Q1757
relation P112
type Q502895
The founder of Helsinki was King [ANSWER]
['Q1757', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1757 property:P112 ?u . ?u rdf:type ontology:Q502895 }
Gustav I of Sweden
The founder of Helsinki was King Gustav I of Sweden
Gustav I of Sweden
action filter_type
action find
entity Helsinki
relation founder
type common name
['Helsinki', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Helsinki property:founder ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1757
P559
Q83620
USER
Which the thoroughfare for which Helsinki is the terminus ?
(c(Q83620),P559,Q1757)
action filter_type
action find_reverse
entity Q1757
relation P559
type Q83620
[{'concept': 'Q83620'}, 'P559', 'Q1757']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q83620 . ?x property:P559 resource:Q1757 }
Helsinki
action filter_type
action find_reverse
entity Helsinki
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Helsinki']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:thoroughfare . ?x property:terminus resource:Helsinki }
[]
thoroughfare
Q10650516
SYSTEM
Regional road 110
Q10650516
(c(Q83620),P559,Q1757)
action filter_type
action find_reverse
entity Q1757
relation P559
type Q83620
[ANSWER]
[{'concept': 'Q83620'}, 'P559', 'Q1757']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q83620 . ?x property:P559 resource:Q1757 }
Regional road 110
Regional road 110
Regional road 110
action filter_type
action find_reverse
entity Helsinki
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Helsinki']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:thoroughfare . ?x property:terminus resource:Helsinki }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1757
P504
Q2235308
USER
Which ship types have Helsinki as their home harbour ?
(c(Q2235308),P504,Q1757)
action filter_type
action find_reverse
entity Q1757
relation P504
type Q2235308
[{'concept': 'Q2235308'}, 'P504', 'Q1757']
SELECT DISTINCT ?j WHERE { ?j property:P504 resource:Q1757 . ?j rdf:type ontology:Q2235308 }
Helsinki
action filter_type
action find_reverse
entity Helsinki
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Helsinki']
SELECT DISTINCT ?j WHERE { ?j property:home_port resource:Helsinki . ?j rdf:type ontology:ship_type }
[]
ship type
Q16222989 Q723031 Q2712235
SYSTEM
Turva, Russian battleship Petropavlovsk, Russian battleship Andrei Pervozvanny
Q723031 Q2712235 Q2003320 Q1813811 Q1570972 Q16222989 Q1547078 Q586635 Q164385
(c(Q2235308),P504,Q1757)
action filter_type
action find_reverse
entity Q1757
relation P504
type Q2235308
[ANSWERS] have Helsinki as their home harbour
[{'concept': 'Q2235308'}, 'P504', 'Q1757']
SELECT DISTINCT ?j WHERE { ?j property:P504 resource:Q1757 . ?j rdf:type ontology:Q2235308 }
Russian battleship Petropavlovsk Russian battleship Andrei Pervozvanny MS Silja Festival Russian cruiser Rurik Russian battleship Sevastopol Turva Novik Russian battleship Gangut Russian battleship Poltava
Turva, Russian battleship Petropavlovsk and Russian battleship Andrei Pervozvanny have Helsinki as their home harbour
Turva Russian battleship Petropavlovsk Russian battleship Andrei Pervozvanny
action filter_type
action find_reverse
entity Helsinki
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Helsinki']
SELECT DISTINCT ?j WHERE { ?j property:home_port resource:Helsinki . ?j rdf:type ontology:ship_type }
[]
Clarification
Simple Question|Single Entity|Indirect
Q723031
P176
Q4830453
USER
Who is the producer of that ship type ?
(Q723031,P176,c(Q4830453))
action filter_type
action find
entity Q723031
relation P176
type Q4830453
['Q723031', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?q WHERE { resource:Q723031 property:P176 ?q . ?q rdf:type ontology:Q4830453 }
Russian battleship Petropavlovsk
action filter_type
action find
entity Russian battleship Petropavlovsk
relation manufacturer
type business enterprise
['Russian battleship Petropavlovsk', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?q WHERE { resource:Russian_battleship_Petropavlovsk property:manufacturer ?q . ?q rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q723031
SYSTEM
Did you mean Russian battleship Petropavlovsk ?
Q16222989 Q723031 Q2712235
(Q16222989,P176,c(Q4830453)) (Q723031,P176,c(Q4830453)) (Q2712235,P176,c(Q4830453))
[ANSWER]
['Q16222989', 'P176', {'concept': 'Q4830453'}] ['Q723031', 'P176', {'concept': 'Q4830453'}] ['Q2712235', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?q WHERE { resource:Q723031 property:P176 ?q . ?q rdf:type ontology:Q4830453 }
Turva Russian battleship Petropavlovsk Russian battleship Andrei Pervozvanny
Did you mean Russian battleship Petropavlovsk ?
Russian battleship Petropavlovsk
['Turva', 'manufacturer', {'concept': 'business enterprise'}] ['Russian battleship Petropavlovsk', 'manufacturer', {'concept': 'business enterprise'}] ['Russian battleship Andrei Pervozvanny', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?q WHERE { resource:Russian_battleship_Petropavlovsk property:manufacturer ?q . ?q rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
Yes
(Q723031,P176,c(Q4830453))
['Q723031', 'P176', {'concept': 'Q4830453'}]
['Russian battleship Petropavlovsk', 'manufacturer', {'concept': 'business enterprise'}]
[]
Q530989
SYSTEM
Baltic Shipyard
Q530989
(Q723031,P176,c(Q4830453))
action filter_type
action find
entity Q723031
relation P176
type Q4830453
The producer of that ship type is the [ANSWER]
['Q723031', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?q WHERE { resource:Q723031 property:P176 ?q . ?q rdf:type ontology:Q4830453 }
Baltic Shipyard
The producer of that ship type is the Baltic Shipyard
Baltic Shipyard
action filter_type
action find
entity Russian battleship Petropavlovsk
relation manufacturer
type business enterprise
['Russian battleship Petropavlovsk', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?q WHERE { resource:Russian_battleship_Petropavlovsk property:manufacturer ?q . ?q rdf:type ontology:business_enterprise }
[]