Simple Question (Direct)
Simple Question
Q6133942
P102
Q7210356
USER
Which party does James Fitzgerald belong to ?
(Q6133942,P102,c(Q7210356))
action filter_type
action find
entity Q6133942
relation P102
type Q7210356
['Q6133942', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q6133942 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
James Fitzgerald
action filter_type
action find
entity James Fitzgerald
relation member of political party
type political organization
['James Fitzgerald', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:James_Fitzgerald property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q6133942,P102,c(Q7210356))
action filter_type
action find
entity Q6133942
relation P102
type Q7210356
James Fitzgerald belongs to [ANSWER]
['Q6133942', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q6133942 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Democratic Party
James Fitzgerald belongs to Democratic Party
Democratic Party
action filter_type
action find
entity James Fitzgerald
relation member of political party
type political organization
['James Fitzgerald', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:James_Fitzgerald property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6133942
P39
Q12737077
USER
Which occupation was a position for which that person was appointed ?
(Q29552,P39,c(Q12737077))
action filter_type
action find
entity Q6133942
relation P39
type Q12737077
['Q29552', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q6133942 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
James Fitzgerald
action filter_type
action find
entity James Fitzgerald
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:James_Fitzgerald property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q18691526
SYSTEM
member of the State Senate of New York
Q18691526
(Q29552,P39,c(Q12737077))
action filter_type
action find
entity Q6133942
relation P39
type Q12737077
A [ANSWER] was a position for which that person was appointed
['Q29552', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q6133942 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
member of the State Senate of New York
A member of the State Senate of New York was a position for which that person was appointed
member of the State Senate of New York
action filter_type
action find
entity James Fitzgerald
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:James_Fitzgerald property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q90165 Q6133942
P39 P106
Q12737077
USER
Which occupations were the positions for which James Fitzgerald were appointed or do Friedrich Mitterwurzer do for a living ?
OR((Q6133942,P39,c(Q12737077)), (Q90165,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6133942
relation P39
action find
entity Q90165
relation P106
type Q12737077
{'OR': [['Q6133942', 'P39', {'concept': 'Q12737077'}], ['Q90165', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q6133942 property:P39 ?i } UNION { resource:Q90165 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
Friedrich Mitterwurzer James Fitzgerald
action filter_type
action union
action find
entity James Fitzgerald
relation position held
action find
entity Friedrich Mitterwurzer
relation occupation
type occupation
{'OR': [['James Fitzgerald', 'position held', {'concept': 'occupation'}], ['Friedrich Mitterwurzer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:James_Fitzgerald property:position_held ?i } UNION { resource:Friedrich_Mitterwurzer property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
occupation
Q18691526 Q33999 Q2259451
SYSTEM
member of the State Senate of New York, actor, stage actor
Q18691526 Q33999 Q2259451
OR((Q6133942,P39,c(Q12737077)), (Q90165,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6133942
relation P39
action find
entity Q90165
relation P106
type Q12737077
[ANSWERS] were the positions for which James Fitzgerald were appointed or do Friedrich Mitterwurzer do for a living
{'OR': [['Q6133942', 'P39', {'concept': 'Q12737077'}], ['Q90165', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q6133942 property:P39 ?i } UNION { resource:Q90165 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
member of the State Senate of New York actor stage actor
Member of the State Senate of New York, actor and stage actor were the positions for which James Fitzgerald were appointed or do Friedrich Mitterwurzer do for a living
member of the State Senate of New York actor stage actor
action filter_type
action union
action find
entity James Fitzgerald
relation position held
action find
entity Friedrich Mitterwurzer
relation occupation
type occupation
{'OR': [['James Fitzgerald', 'position held', {'concept': 'occupation'}], ['Friedrich Mitterwurzer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:James_Fitzgerald property:position_held ?i } UNION { resource:Friedrich_Mitterwurzer property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18691526
P1001
Q852446
USER
Which US administrative territory applies to jurisdiction of that occupation ?
(Q18691526,P1001,c(Q852446))
action filter_type
action find
entity Q18691526
relation P1001
type Q852446
['Q18691526', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?q WHERE { resource:Q18691526 property:P1001 ?q . ?q rdf:type ontology:Q852446 }
member of the State Senate of New York
action filter_type
action find
entity member of the State Senate of New York
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the State Senate of New York', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_State_Senate_of_New_York property:applies_to_jurisdiction ?q . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Clarification for simple ques.
Q33999
SYSTEM
Did you mean actor ?
Q18691526 Q33999 Q2259451
(Q18691526,P1001,c(Q852446)) (Q33999,P1001,c(Q852446)) (Q2259451,P1001,c(Q852446))
[ANSWER]
['Q18691526', 'P1001', {'concept': 'Q852446'}] ['Q33999', 'P1001', {'concept': 'Q852446'}] ['Q2259451', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?q WHERE { resource:Q18691526 property:P1001 ?q . ?q rdf:type ontology:Q852446 }
member of the State Senate of New York actor stage actor
Did you mean actor ?
actor
['member of the State Senate of New York', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}] ['actor', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}] ['stage actor', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_State_Senate_of_New_York property:applies_to_jurisdiction ?q . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
USER
No, I meant member of the State Senate of New York. Could you tell me the answer for that?
(Q18691526,P1001,c(Q852446))
Q18691526
['Q18691526', 'P1001', {'concept': 'Q852446'}]
['member of the State Senate of New York', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
[]
Q1384
SYSTEM
New York
Q1384
(Q18691526,P1001,c(Q852446))
action filter_type
action find
entity Q18691526
relation P1001
type Q852446
[ANSWER] applies to jurisdiction of that occupation
['Q18691526', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?q WHERE { resource:Q18691526 property:P1001 ?q . ?q rdf:type ontology:Q852446 }
New York
New York applies to jurisdiction of that occupation
New York
action filter_type
action find
entity member of the State Senate of New York
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the State Senate of New York', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_State_Senate_of_New_York property:applies_to_jurisdiction ?q . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P110
Q502895 Q234460 Q26971562
USER
Which people illustrated approximately 2 texts or comic formats ?
(c(Q234460)|c(Q26971562),P110,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
value 2
[[{'concept': 'Q234460'}, {'concept': 'Q26971562'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q234460 ) ( ontology:Q26971562 ) } } GROUP BY ?b } . FILTER ( ?q = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
value 2
[[{'concept': 'text'}, {'concept': 'comic format'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:text ) ( ontology:comic_format ) } } GROUP BY ?b } . FILTER ( ?q = 2 ) }
[]
common name text comic format
Q1153256 Q551359 Q390904
SYSTEM
Robert Lawson, Go Nagai, Luc-Olivier Merson
Q390904 Q183245 Q11264875 Q7026779 Q27042725 Q7340147 Q118342 Q201157 Q378710 Q3509579 Q1441469 Q282121 Q374823 Q544975 Q7182001 Q5721334 Q2535205 Q3272581 Q274909 Q272324 Q384225 Q8257263 Q729902 Q354371 Q3159789 Q6256932 Q57971 Q11462733 Q17284472 Q5364832 Q311704 Q6224222 Q467427 Q6787709 Q5363905 Q27067551 Q551359 Q999229 Q610576 Q27031075 Q3018977 Q966547 Q313703 Q1153256 Q215724 Q11644966 Q5645581 Q3526691 Q8973188 Q7426424 Q6252938 Q7366035
(c(Q234460)|c(Q26971562),P110,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
value 2
[ANSWERS] illustrated approximately 2 texts or comic formats
[[{'concept': 'Q234460'}, {'concept': 'Q26971562'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q234460 ) ( ontology:Q26971562 ) } } GROUP BY ?b } . FILTER ( ?q = 2 ) }
Luc-Olivier Merson George Frederic Watts Akira Kiduki Nick Bertozzi Richard Forgues Rob G. Rotraut Susanne Berner George Roux Katsuhiro Otomo Jules Férat Francis Donkin Bedford Yoshiyuki Sadamoto Kōshi Rikudō Mike Mignola Phil Hester Henry Flint Enrico Mazzanti Takao Aoki Émile Bayard Masami Tsuda Eduardo Risso Mikhail Filippovich David Lloyd Jean-Jacques Sempé Jacques Poirier John Schoenherr Cornelia Funke Masumi Ozawa Patric Reynolds Ellen Forney Jeff Kinney John Byrne Utagawa Kunisada Mato Yoshiaki Sukeno Bill Maus Go Nagai Sakura Asagi Yūji Iwahara Agustin Alessio David Wenzel Léon Benett Takeshi Obata Robert Lawson Heinrich Hoffmann Takeshi Nogami Hammatt Billings Théophile Schuler Hiroo Isono Satoshi Yamamoto John Pine Ronnie del Carmen
Robert Lawson, Go Nagai and Luc-Olivier Merson illustrated approximately 2 texts or comic formats
Robert Lawson Go Nagai Luc-Olivier Merson
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
value 2
[[{'concept': 'text'}, {'concept': 'comic format'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:text ) ( ontology:comic_format ) } } GROUP BY ?b } . FILTER ( ?q = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1153256
P50
Q2342494
USER
Which collectables are written by Robert Lawson ?
(c(Q2342494),P50,Q1153256)
action filter_type
action find_reverse
entity Q1153256
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q1153256']
SELECT DISTINCT ?t WHERE { ?t property:P50 resource:Q1153256 . ?t rdf:type ontology:Q2342494 }
Robert Lawson
action filter_type
action find_reverse
entity Robert Lawson
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Robert Lawson']
SELECT DISTINCT ?t WHERE { ?t property:author resource:Robert_Lawson . ?t rdf:type ontology:collectable }
[]
collectable
Q7737990 Q7278586 Q7783791
SYSTEM
The Great Wheel, Rabbit Hill, They Were Strong and Good
Q7737990 Q7278586 Q7783791
(c(Q2342494),P50,Q1153256)
action filter_type
action find_reverse
entity Q1153256
relation P50
type Q2342494
The The Great Wheel, Rabbit Hill and They were Strong and Good are written by Robert Lawson
[{'concept': 'Q2342494'}, 'P50', 'Q1153256']
SELECT DISTINCT ?t WHERE { ?t property:P50 resource:Q1153256 . ?t rdf:type ontology:Q2342494 }
The Great Wheel Rabbit Hill They Were Strong and Good
The The Great Wheel, Rabbit Hill and They were Strong and Good are written by Robert Lawson
The Great Wheel Rabbit Hill They Were Strong and Good
action filter_type
action find_reverse
entity Robert Lawson
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Robert Lawson']
SELECT DISTINCT ?t WHERE { ?t property:author resource:Robert_Lawson . ?t rdf:type ontology:collectable }
[]