Simple Question (Direct)
Simple Question
Q977424
P106
Q12737077
USER
What do Alfred Jeanroy do for a living ?
(Q977424,P106,c(Q12737077))
action filter_type
action find
entity Q977424
relation P106
type Q12737077
['Q977424', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q977424 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Alfred Jeanroy
action filter_type
action find
entity Alfred Jeanroy
relation occupation
type occupation
['Alfred Jeanroy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Alfred_Jeanroy property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q201788 Q14467526 Q1622272
SYSTEM
historian, linguist, university teacher
Q201788 Q14467526 Q1622272
(Q977424,P106,c(Q12737077))
action filter_type
action find
entity Q977424
relation P106
type Q12737077
[ANSWERS] Alfred Jeanroy do for a living
['Q977424', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q977424 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
historian linguist university teacher
Historian, linguist and university teacher Alfred Jeanroy do for a living
historian linguist university teacher
action filter_type
action find
entity Alfred Jeanroy
relation occupation
type occupation
['Alfred Jeanroy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Alfred_Jeanroy property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q977424
P19
Q20667921
USER
Which french administrative division is the place of birth of that person ?
(Q201788,P19,c(Q20667921)) (Q14467526,P19,c(Q20667921)) (Q1622272,P19,c(Q20667921))
action filter_type
action find
entity Q977424
relation P19
type Q20667921
['Q201788', 'P19', {'concept': 'Q20667921'}] ['Q14467526', 'P19', {'concept': 'Q20667921'}] ['Q1622272', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q977424 property:P19 ?v . ?v rdf:type ontology:Q20667921 }
Alfred Jeanroy
action filter_type
action find
entity Alfred Jeanroy
relation place of birth
type type of french administrative division
['historian', 'place of birth', {'concept': 'type of french administrative division'}] ['linguist', 'place of birth', {'concept': 'type of french administrative division'}] ['university teacher', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Alfred_Jeanroy property:place_of_birth ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q59323
SYSTEM
Mangiennes
Q59323
(Q201788,P19,c(Q20667921)) (Q14467526,P19,c(Q20667921)) (Q1622272,P19,c(Q20667921))
action filter_type
action find
entity Q977424
relation P19
type Q20667921
[ANSWER] is the place of birth of that person
['Q201788', 'P19', {'concept': 'Q20667921'}] ['Q14467526', 'P19', {'concept': 'Q20667921'}] ['Q1622272', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q977424 property:P19 ?v . ?v rdf:type ontology:Q20667921 }
Mangiennes
Mangiennes is the place of birth of that person
Mangiennes
action filter_type
action find
entity Alfred Jeanroy
relation place of birth
type type of french administrative division
['historian', 'place of birth', {'concept': 'type of french administrative division'}] ['linguist', 'place of birth', {'concept': 'type of french administrative division'}] ['university teacher', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Alfred_Jeanroy property:place_of_birth ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q59323
P47
Q20667921
USER
How many french administrative divisions are bordered by Mangiennes ?
(Q59323,P47,c(Q20667921))
action count
action filter_type
action find
entity Q59323
relation P47
type Q20667921
['Q59323', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Q59323 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Mangiennes
action count
action filter_type
action find
entity Mangiennes
relation shares border with
type type of french administrative division
['Mangiennes', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Mangiennes property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
6
Q59796 Q1387165 Q59489 Q227629 Q59362 Q59536
(Q59323,P47,c(Q20667921))
action count
action filter_type
action find
entity Q59323
relation P47
type Q20667921
[ANSWER]
['Q59323', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Q59323 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Pillon Romagne-sous-les-Côtes Saint-Laurent-sur-Othain Azannes-et-Soumazannes Villers-lès-Mangiennes Billy-sous-Mangiennes
6
action count
action filter_type
action find
entity Mangiennes
relation shares border with
type type of french administrative division
['Mangiennes', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { resource:Mangiennes property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q196553
Q20667921
USER
And also tell me about Comblessac?
(Q196553,P47,c(Q20667921))
action count
action filter_type
action find
entity Q196553
relation P47
type Q20667921
['Q196553', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q196553 property:P47 ?v . ?v rdf:type ontology:Q20667921 }
Comblessac
action count
action filter_type
action find
entity Comblessac
relation shares border with
type type of french administrative division
['Comblessac', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Comblessac property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
5
(Q196553,P47,c(Q20667921))
action count
action filter_type
action find
entity Q196553
relation P47
type Q20667921
[ANSWER]
['Q196553', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q196553 property:P47 ?v . ?v rdf:type ontology:Q20667921 }
5
action count
action filter_type
action find
entity Comblessac
relation shares border with
type type of french administrative division
['Comblessac', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Comblessac property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1627992
P180
Q12737077 Q18783400 Q17638008
USER
How many occupations are depicted in greater number of genres of sculpture or game equipment than lady's maid ?
(c(Q18783400)|c(Q17638008),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1627992
relation P180
type Q18783400
type Q17638008
[[{'concept': 'Q18783400'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { { ?c property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q17638008 } UNION { ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q18783400 . ?c property:P180 ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P180 resource:Q1627992 . { { ?p rdf:type ontology:Q17638008 } UNION { ?p rdf:type ontology:Q18783400 } } } } . FILTER ( ?k > ?w ) }
lady's maid
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity lady's maid
relation depicts
type genre of sculpture
type game equipment
[[{'concept': 'genre of sculpture'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { { ?c property:depicts ?v . ?v rdf:type ontology:occupation . ?c rdf:type ontology:game_equipment } UNION { ?v rdf:type ontology:occupation . ?c rdf:type ontology:genre_of_sculpture . ?c property:depicts ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:depicts resource:lady's_maid . { { ?p rdf:type ontology:game_equipment } UNION { ?p rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?k > ?w ) }
[]
occupation genre of sculpture game equipment
SYSTEM
3
Q131512 Q12097 Q4991371
(c(Q18783400)|c(Q17638008),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1627992
relation P180
type Q18783400
type Q17638008
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { { ?c property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q17638008 } UNION { ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q18783400 . ?c property:P180 ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P180 resource:Q1627992 . { { ?p rdf:type ontology:Q17638008 } UNION { ?p rdf:type ontology:Q18783400 } } } } . FILTER ( ?k > ?w ) }
farmer king soldier
3
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity lady's maid
relation depicts
type genre of sculpture
type game equipment
[[{'concept': 'genre of sculpture'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { { ?c property:depicts ?v . ?v rdf:type ontology:occupation . ?c rdf:type ontology:game_equipment } UNION { ?v rdf:type ontology:occupation . ?c rdf:type ontology:genre_of_sculpture . ?c property:depicts ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:depicts resource:lady's_maid . { { ?p rdf:type ontology:game_equipment } UNION { ?p rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?k > ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1622272
P106
Q2472587 Q15619164
USER
How many peoples and abstract beings have the profession as university teacher ?
(c(Q2472587),P106,Q1622272) (c(Q15619164),P106,Q1622272)
action count
action union
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q2472587
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q15619164
[{'concept': 'Q2472587'}, 'P106', 'Q1622272'] [{'concept': 'Q15619164'}, 'P106', 'Q1622272']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t property:P106 resource:Q1622272 . ?t rdf:type ontology:Q2472587 } UNION { ?t property:P106 resource:Q1622272 . ?t rdf:type ontology:Q15619164 } }
university teacher
action count
action union
action filter_type
action find_reverse
entity university teacher
relation occupation
type people
action filter_type
action find_reverse
entity university teacher
relation occupation
type abstract being
[{'concept': 'people'}, 'occupation', 'university teacher'] [{'concept': 'abstract being'}, 'occupation', 'university teacher']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t property:occupation resource:university_teacher . ?t rdf:type ontology:people } UNION { ?t property:occupation resource:university_teacher . ?t rdf:type ontology:abstract_being } }
[]
people abstract being
SYSTEM
1 peoples and 1 abstract beings
Q967413 Q373799
(c(Q2472587),P106,Q1622272) (c(Q15619164),P106,Q1622272)
action count
action union
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q2472587
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q15619164
[ANSWER]
[{'concept': 'Q2472587'}, 'P106', 'Q1622272'] [{'concept': 'Q15619164'}, 'P106', 'Q1622272']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t property:P106 resource:Q1622272 . ?t rdf:type ontology:Q2472587 } UNION { ?t property:P106 resource:Q1622272 . ?t rdf:type ontology:Q15619164 } }
Nathaniel Kleitman Giovanni Antonio Amedeo Plana
1 peoples and 1 abstract beings
action count
action union
action filter_type
action find_reverse
entity university teacher
relation occupation
type people
action filter_type
action find_reverse
entity university teacher
relation occupation
type abstract being
[{'concept': 'people'}, 'occupation', 'university teacher'] [{'concept': 'abstract being'}, 'occupation', 'university teacher']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t property:occupation resource:university_teacher . ?t rdf:type ontology:people } UNION { ?t property:occupation resource:university_teacher . ?t rdf:type ontology:abstract_being } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q59323
P166
Q618779
USER
What was won by Mangiennes ?
(Q59323,P166,c(Q618779))
action filter_type
action find
entity Q59323
relation P166
type Q618779
['Q59323', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q618779 . resource:Q59323 property:P166 ?l }
Mangiennes
action filter_type
action find
entity Mangiennes
relation award received
type award
['Mangiennes', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:award . resource:Mangiennes property:award_received ?l }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q59323,P166,c(Q618779))
action filter_type
action find
entity Q59323
relation P166
type Q618779
France [ANSWER] was won by Mangiennes
['Q59323', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q618779 . resource:Q59323 property:P166 ?l }
Croix de guerre 1914–1918
France Croix de guerre 1914–1918 was won by Mangiennes
Croix de guerre 1914–1918
action filter_type
action find
entity Mangiennes
relation award received
type award
['Mangiennes', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:award . resource:Mangiennes property:award_received ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q59323
P17
Q15617994
USER
Which administrative territory is that french administrative division present in ?
(Q2727598,P17,c(Q15617994))
action filter_type
action find
entity Q59323
relation P17
type Q15617994
['Q2727598', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q59323 property:P17 ?e }
Mangiennes
action filter_type
action find
entity Mangiennes
relation country
type designation for an administrative territorial entity
['Croix de guerre 1914–1918', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mangiennes property:country ?e }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2727598,P17,c(Q15617994))
action filter_type
action find
entity Q59323
relation P17
type Q15617994
That french administrative division is in [ANSWER]
['Q2727598', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q59323 property:P17 ?e }
France
That french administrative division is in France
France
action filter_type
action find
entity Mangiennes
relation country
type designation for an administrative territorial entity
['Croix de guerre 1914–1918', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mangiennes property:country ?e }
[]