Simple Question (Direct)
Simple Question
Q6836042
P106
Q12737077
USER
What is the profession of Michał Pulkowski ?
(Q6836042,P106,c(Q12737077))
action filter_type
action find
entity Q6836042
relation P106
type Q12737077
['Q6836042', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q6836042 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Michał Pulkowski
action filter_type
action find
entity Michał Pulkowski
relation occupation
type occupation
['Michał Pulkowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Michał_Pulkowski property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6836042,P106,c(Q12737077))
action filter_type
action find
entity Q6836042
relation P106
type Q12737077
The profession of Michał Pulkowski is an [ANSWER]
['Q6836042', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q6836042 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
association football player
The profession of Michał Pulkowski is an association football player
association football player
action filter_type
action find
entity Michał Pulkowski
relation occupation
type occupation
['Michał Pulkowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Michał_Pulkowski property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6836042
P641
Q349
USER
What was the sport that Michał Pulkowski was a part of ?
(Q6836042,P641,c(Q349))
action filter_type
action find
entity Q6836042
relation P641
type Q349
['Q6836042', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q6836042 property:P641 ?r . ?r rdf:type ontology:Q349 }
Michał Pulkowski
action filter_type
action find
entity Michał Pulkowski
relation sport
type sport
['Michał Pulkowski', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Michał_Pulkowski property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6836042,P641,c(Q349))
action filter_type
action find
entity Q6836042
relation P641
type Q349
The sport that Michał Pulkowski was a part of was the [ANSWER]
['Q6836042', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q6836042 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
The sport that Michał Pulkowski was a part of was the association football
association football
action filter_type
action find
entity Michał Pulkowski
relation sport
type sport
['Michał Pulkowski', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Michał_Pulkowski property:sport ?r . ?r rdf:type ontology:sport }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of approximately 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P417 ?w . ?w rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?w } }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:patron_saint ?w . ?w rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?w } }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the patron saints of approximately 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P417 ?w . ?w rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?w } }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
Isidore of Seville, Catherine of Siena and Jerome are the patron saints of approximately 2 occupations
Isidore of Seville Catherine of Siena Jerome
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:patron_saint ?w . ?w rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?w } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q166876 Q229190 Q44248
P417
Q12737077
USER
Who have adopted Isidore of Seville, Catherine of Siena and Jerome as their patron saint ?
(c(Q12737077),P417,Q166876) (c(Q12737077),P417,Q229190) (c(Q12737077),P417,Q44248)
action union
action filter_type
action find_reverse
entity Q166876
relation P417
type Q12737077
action filter_type
action find_reverse
entity Q229190
relation P417
type Q12737077
action filter_type
action find_reverse
entity Q44248
relation P417
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q166876'] [{'concept': 'Q12737077'}, 'P417', 'Q229190'] [{'concept': 'Q12737077'}, 'P417', 'Q44248']
SELECT DISTINCT ?w WHERE { VALUES ( ?k ) { ( resource:Q229190 ) ( resource:Q166876 ) } . ?w property:P417 ?k }
Isidore of Seville Catherine of Siena Jerome
action union
action filter_type
action find_reverse
entity Isidore of Seville
relation patron saint
type occupation
action filter_type
action find_reverse
entity Catherine of Siena
relation patron saint
type occupation
action filter_type
action find_reverse
entity Jerome
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Isidore of Seville'] [{'concept': 'occupation'}, 'patron saint', 'Catherine of Siena'] [{'concept': 'occupation'}, 'patron saint', 'Jerome']
SELECT DISTINCT ?w WHERE { VALUES ( ?k ) { ( resource:Catherine_of_Siena ) ( resource:Isidore_of_Seville ) } . ?w property:patron_saint ?k }
[]
occupation
Q131512 Q186360 Q182436
SYSTEM
farmer, nurse, librarian
Q131512 Q82594 Q107711 Q186360 Q182436 Q3621491
(c(Q12737077),P417,Q166876) (c(Q12737077),P417,Q229190) (c(Q12737077),P417,Q44248)
action union
action filter_type
action find_reverse
entity Q166876
relation P417
type Q12737077
action filter_type
action find_reverse
entity Q229190
relation P417
type Q12737077
action filter_type
action find_reverse
entity Q44248
relation P417
type Q12737077
[ANSWERS] have adopted Isidore of Seville, Catherine of Siena and Jerome as their patron saint
[{'concept': 'Q12737077'}, 'P417', 'Q166876'] [{'concept': 'Q12737077'}, 'P417', 'Q229190'] [{'concept': 'Q12737077'}, 'P417', 'Q44248']
SELECT DISTINCT ?w WHERE { VALUES ( ?k ) { ( resource:Q229190 ) ( resource:Q166876 ) } . ?w property:P417 ?k }
farmer computer scientist firefighter nurse librarian archaeologist
Farmer, nurse and librarian have adopted Isidore of Seville, Catherine of Siena and Jerome as their patron saint
farmer nurse librarian
action union
action filter_type
action find_reverse
entity Isidore of Seville
relation patron saint
type occupation
action filter_type
action find_reverse
entity Catherine of Siena
relation patron saint
type occupation
action filter_type
action find_reverse
entity Jerome
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Isidore of Seville'] [{'concept': 'occupation'}, 'patron saint', 'Catherine of Siena'] [{'concept': 'occupation'}, 'patron saint', 'Jerome']
SELECT DISTINCT ?w WHERE { VALUES ( ?k ) { ( resource:Catherine_of_Siena ) ( resource:Isidore_of_Seville ) } . ?w property:patron_saint ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q166876
P1412
Q34770
USER
Which languages are spoken by Isidore of Seville ?
(Q166876,P1412,c(Q34770))
action filter_type
action find
entity Q166876
relation P1412
type Q34770
['Q166876', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q166876 property:P1412 ?y }
Isidore of Seville
action filter_type
action find
entity Isidore of Seville
relation languages spoken, written or signed
type language
['Isidore of Seville', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:Isidore_of_Seville property:languages_spoken,_written_or_signed ?y }
[]
language
Q397 Q1321
SYSTEM
Latin, Spanish
Q397 Q1321
(Q166876,P1412,c(Q34770))
action filter_type
action find
entity Q166876
relation P1412
type Q34770
[ANSWERS] are spoken by Isidore of Seville
['Q166876', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q166876 property:P1412 ?y }
Latin Spanish
Latin and Spanish are spoken by Isidore of Seville
Latin Spanish
action filter_type
action find
entity Isidore of Seville
relation languages spoken, written or signed
type language
['Isidore of Seville', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:Isidore_of_Seville property:languages_spoken,_written_or_signed ?y }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7407736
Q34770
USER
And what about Sam Keen?
(Q7407736,P1412,c(Q34770))
action filter_type
action find
entity Q7407736
relation P1412
type Q34770
['Q7407736', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q7407736 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Sam Keen
action filter_type
action find
entity Sam Keen
relation languages spoken, written or signed
type language
['Sam Keen', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Sam_Keen property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q7407736,P1412,c(Q34770))
action filter_type
action find
entity Q7407736
relation P1412
type Q34770
[ANSWER]
['Q7407736', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q7407736 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Sam Keen
relation languages spoken, written or signed
type language
['Sam Keen', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Sam_Keen property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1860
P361
Q5962346
USER
Which classification schemes are that language a component of ?
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?k }
English
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:classification_scheme . resource:English property:part_of ?k }
[]
classification scheme
Q1346342 Q5329170
SYSTEM
Anglic languages, Anglo-Frisian languages
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
[ANSWERS] are that language a component of
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?k }
Anglic languages Anglo-Frisian languages
Anglic languages and Anglo-Frisian languages are that language a component of
Anglic languages Anglo-Frisian languages
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:classification_scheme . resource:English property:part_of ?k }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1683601 Q1860
P361
Q5962346
USER
Or ship?
OR((Q1860,P361,c(Q5962346)), (Q1683601,P361,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q1683601
relation P361
type Q5962346
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q1683601', 'P361', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1860 property:P361 ?b } UNION { resource:Q1683601 property:P361 ?b } } . ?b rdf:type ontology:Q5962346 }
ship English
action filter_type
action union
action find
entity English
relation part of
action find
entity ship
relation part of
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['ship', 'part of', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?b WHERE { { { resource:English property:part_of ?b } UNION { resource:ship property:part_of ?b } } . ?b rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q18336 Q5329170
SYSTEM
Anglic languages, heraldry, Anglo-Frisian languages
Q1346342 Q18336 Q5329170
OR((Q1860,P361,c(Q5962346)), (Q1683601,P361,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q1683601
relation P361
type Q5962346
[ANSWERS]
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q1683601', 'P361', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1860 property:P361 ?b } UNION { resource:Q1683601 property:P361 ?b } } . ?b rdf:type ontology:Q5962346 }
Anglic languages heraldry Anglo-Frisian languages
Anglic languages heraldry Anglo-Frisian languages
action filter_type
action union
action find
entity English
relation part of
action find
entity ship
relation part of
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['ship', 'part of', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?b WHERE { { { resource:English property:part_of ?b } UNION { resource:ship property:part_of ?b } } . ?b rdf:type ontology:classification_scheme }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1346342
P364
Q2342494
USER
Which collectables are known to be originally created in that classification scheme language ?
(c(Q2342494),P364,Q1346342)
action filter_type
action find_reverse
entity Q1346342
relation P364
type Q2342494
[{'concept': 'Q2342494'}, 'P364', 'Q1346342']
SELECT DISTINCT ?t WHERE { ?t property:P364 resource:Q1346342 . ?t rdf:type ontology:Q2342494 }
Anglic languages
action filter_type
action find_reverse
entity Anglic languages
relation original language of work
type collectable
[{'concept': 'collectable'}, 'original language of work', 'Anglic languages']
SELECT DISTINCT ?t WHERE { ?t property:original_language_of_work resource:Anglic_languages . ?t rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q5329170
SYSTEM
Did you mean Anglo-Frisian languages ?
Q1346342 Q18336 Q5329170
(c(Q2342494),P364,Q1346342) (c(Q2342494),P364,Q18336) (c(Q2342494),P364,Q5329170)
[ANSWER]
[{'concept': 'Q2342494'}, 'P364', 'Q1346342'] [{'concept': 'Q2342494'}, 'P364', 'Q18336'] [{'concept': 'Q2342494'}, 'P364', 'Q5329170']
SELECT DISTINCT ?t WHERE { ?t property:P364 resource:Q1346342 . ?t rdf:type ontology:Q2342494 }
Anglic languages heraldry Anglo-Frisian languages
Did you mean Anglo-Frisian languages ?
Anglo-Frisian languages
[{'concept': 'collectable'}, 'original language of work', 'Anglic languages'] [{'concept': 'collectable'}, 'original language of work', 'heraldry'] [{'concept': 'collectable'}, 'original language of work', 'Anglo-Frisian languages']
SELECT DISTINCT ?t WHERE { ?t property:original_language_of_work resource:Anglic_languages . ?t rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant Anglic languages. Could you tell me the answer for that?
(c(Q2342494),P364,Q1346342)
Q1346342
[{'concept': 'Q2342494'}, 'P364', 'Q1346342']
[{'concept': 'collectable'}, 'original language of work', 'Anglic languages']
[]
Q7766896 Q7763162
SYSTEM
The Strange Case of Origami Yoda, The Secret of the Fortune Wookiee
Q7766896 Q7763162
(c(Q2342494),P364,Q1346342)
action filter_type
action find_reverse
entity Q1346342
relation P364
type Q2342494
[ANSWERS] are known to be originally created in that classification scheme language
[{'concept': 'Q2342494'}, 'P364', 'Q1346342']
SELECT DISTINCT ?t WHERE { ?t property:P364 resource:Q1346342 . ?t rdf:type ontology:Q2342494 }
The Strange Case of Origami Yoda The Secret of the Fortune Wookiee
The Strange Case of Origami Yoda and The Secret of the Fortune Wookiee are known to be originally created in that classification scheme language
The Strange Case of Origami Yoda The Secret of the Fortune Wookiee
action filter_type
action find_reverse
entity Anglic languages
relation original language of work
type collectable
[{'concept': 'collectable'}, 'original language of work', 'Anglic languages']
SELECT DISTINCT ?t WHERE { ?t property:original_language_of_work resource:Anglic_languages . ?t rdf:type ontology:collectable }
[]