Simple Question (Direct)
Simple Question
Q4662425
P21
Q290
USER
Which sex does Aaron Shaw have ?
(Q4662425,P21,c(Q290))
action filter_type
action find
entity Q4662425
relation P21
type Q290
['Q4662425', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q4662425 property:P21 ?s . ?s rdf:type ontology:Q290 }
Aaron Shaw
action filter_type
action find
entity Aaron Shaw
relation gender
type sex
['Aaron Shaw', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Aaron_Shaw property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4662425,P21,c(Q290))
action filter_type
action find
entity Q4662425
relation P21
type Q290
Aaron Shaw has a [ANSWER]
['Q4662425', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q4662425 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Aaron Shaw has a male
male
action filter_type
action find
entity Aaron Shaw
relation gender
type sex
['Aaron Shaw', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Aaron_Shaw property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4662425
P1412
Q34770
USER
Which language is Aaron Shaw capable of writing ?
(Q4662425,P1412,c(Q34770))
action filter_type
action find
entity Q4662425
relation P1412
type Q34770
['Q4662425', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q34770 . resource:Q4662425 property:P1412 ?o }
Aaron Shaw
action filter_type
action find
entity Aaron Shaw
relation languages spoken, written or signed
type language
['Aaron Shaw', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:language . resource:Aaron_Shaw property:languages_spoken,_written_or_signed ?o }
[]
language
Q1860
SYSTEM
English
Q1860
(Q4662425,P1412,c(Q34770))
action filter_type
action find
entity Q4662425
relation P1412
type Q34770
The [ANSWER] is Aaron Shaw capable of writing
['Q4662425', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q34770 . resource:Q4662425 property:P1412 ?o }
English
The English is Aaron Shaw capable of writing
English
action filter_type
action find
entity Aaron Shaw
relation languages spoken, written or signed
type language
['Aaron Shaw', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:language . resource:Aaron_Shaw property:languages_spoken,_written_or_signed ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6581097 Q925
P138
Q7946
USER
How many minerals have male or mercury as their toponym ?
(c(Q7946),P138,Q6581097) (c(Q7946),P138,Q925)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
action filter_type
action find_reverse
entity Q925
relation P138
type Q7946
[{'concept': 'Q7946'}, 'P138', 'Q6581097'] [{'concept': 'Q7946'}, 'P138', 'Q925']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { VALUES ( ?e ) { ( resource:Q6581097 ) ( resource:Q925 ) } . ?g property:P138 ?e }
male mercury
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral
action filter_type
action find_reverse
entity mercury
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'male'] [{'concept': 'mineral'}, 'named after', 'mercury']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { VALUES ( ?e ) { ( resource:male ) ( resource:mercury ) } . ?g property:named_after ?e }
[]
mineral
SYSTEM
7
Q19861020 Q18375263 Q4006570 Q3565842 Q19862060 Q19861231 Q19833301
(c(Q7946),P138,Q6581097) (c(Q7946),P138,Q925)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
action filter_type
action find_reverse
entity Q925
relation P138
type Q7946
[ANSWER]
[{'concept': 'Q7946'}, 'P138', 'Q6581097'] [{'concept': 'Q7946'}, 'P138', 'Q925']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { VALUES ( ?e ) { ( resource:Q6581097 ) ( resource:Q925 ) } . ?g property:P138 ?e }
mendeleevite-(Ce) billwiseite urusovite zirkelite witzkeite reynoldsite carlosbarbosaite
7
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral
action filter_type
action find_reverse
entity mercury
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'male'] [{'concept': 'mineral'}, 'named after', 'mercury']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { VALUES ( ?e ) { ( resource:male ) ( resource:mercury ) } . ?g property:named_after ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4662425
P106
Q12737077
USER
What are the job of Aaron Shaw ?
(Q4662425,P106,c(Q12737077))
action filter_type
action find
entity Q4662425
relation P106
type Q12737077
['Q4662425', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q4662425 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Aaron Shaw
action filter_type
action find
entity Aaron Shaw
relation occupation
type occupation
['Aaron Shaw', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Aaron_Shaw property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q16533 Q82955
SYSTEM
judge, politician
Q16533 Q82955
(Q4662425,P106,c(Q12737077))
action filter_type
action find
entity Q4662425
relation P106
type Q12737077
The job of Aaron Shaw are a [ANSWERS]
['Q4662425', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q4662425 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
judge politician
The job of Aaron Shaw are a judge and politician
judge politician
action filter_type
action find
entity Aaron Shaw
relation occupation
type occupation
['Aaron Shaw', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Aaron_Shaw property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4662425
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q16533,P102,c(Q7210356)) (Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q4662425
relation P102
type Q7210356
['Q16533', 'P102', {'concept': 'Q7210356'}] ['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q7210356 . resource:Q4662425 property:P102 ?a }
Aaron Shaw
action filter_type
action find
entity Aaron Shaw
relation member of political party
type political organization
['judge', 'member of political party', {'concept': 'political organization'}] ['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_organization . resource:Aaron_Shaw property:member_of_political_party ?a }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q16533,P102,c(Q7210356)) (Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q4662425
relation P102
type Q7210356
Party [ANSWER] is that person a member of
['Q16533', 'P102', {'concept': 'Q7210356'}] ['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q7210356 . resource:Q4662425 property:P102 ?a }
Democratic Party
Party Democratic Party is that person a member of
Democratic Party
action filter_type
action find
entity Aaron Shaw
relation member of political party
type political organization
['judge', 'member of political party', {'concept': 'political organization'}] ['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_organization . resource:Aaron_Shaw property:member_of_political_party ?a }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q6194054 Q4662425
P102
Q7210356
USER
And also Jim Carlson
AND((Q4662425,P102,c(Q7210356)), (Q6194054,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q4662425
relation P102
action find
entity Q6194054
relation P102
type Q7210356
{'AND': [['Q4662425', 'P102', {'concept': 'Q7210356'}], ['Q6194054', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?x WHERE { resource:Q4662425 property:P102 ?x . resource:Q6194054 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Jim Carlson Aaron Shaw
action filter_type
action intersection
action find
entity Aaron Shaw
relation member of political party
action find
entity Jim Carlson
relation member of political party
type political organization
{'AND': [['Aaron Shaw', 'member of political party', {'concept': 'political organization'}], ['Jim Carlson', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?x WHERE { resource:Aaron_Shaw property:member_of_political_party ?x . resource:Jim_Carlson property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
AND((Q4662425,P102,c(Q7210356)), (Q6194054,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q4662425
relation P102
action find
entity Q6194054
relation P102
type Q7210356
[ANSWER]
{'AND': [['Q4662425', 'P102', {'concept': 'Q7210356'}], ['Q6194054', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?x WHERE { resource:Q4662425 property:P102 ?x . resource:Q6194054 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Democratic Party
Democratic Party
action filter_type
action intersection
action find
entity Aaron Shaw
relation member of political party
action find
entity Jim Carlson
relation member of political party
type political organization
{'AND': [['Aaron Shaw', 'member of political party', {'concept': 'political organization'}], ['Jim Carlson', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?x WHERE { resource:Aaron_Shaw property:member_of_political_party ?x . resource:Jim_Carlson property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q7210356 Q43229 Q1190554
USER
How many political organizations are greater number of organizations or events a part of than that political organization ?
(c(Q43229)|c(Q1190554),P361,c(Q7210356))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q43229
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q29552
relation P361
type Q43229
type Q1190554
[[{'concept': 'Q43229'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { { ?w property:P361 ?s . ?s rdf:type ontology:Q7210356 . ?w rdf:type ontology:Q1190554 } UNION { ?w property:P361 ?s . ?s rdf:type ontology:Q7210356 . ?w rdf:type ontology:Q43229 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P361 resource:Q29552 . { VALUES ( ?r ) { ( ontology:Q1190554 ) ( ontology:Q43229 ) } . ?t rdf:type ?r } } } . FILTER ( ?x > ?v ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type political organization
type organization
action find_reverse_tuple_counts
relation part of
type political organization
type event
action count
action filter_multi_types
action find_reverse
entity Democratic Party
relation part of
type organization
type event
[[{'concept': 'organization'}, {'concept': 'event'}], 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { { ?w property:part_of ?s . ?s rdf:type ontology:political_organization . ?w rdf:type ontology:event } UNION { ?w property:part_of ?s . ?s rdf:type ontology:political_organization . ?w rdf:type ontology:organization } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:part_of resource:Democratic_Party . { VALUES ( ?r ) { ( ontology:event ) ( ontology:organization ) } . ?t rdf:type ?r } } } . FILTER ( ?x > ?v ) }
[]
political organization organization event
SYSTEM
1
Q249960
(c(Q43229)|c(Q1190554),P361,c(Q7210356))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q43229
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q29552
relation P361
type Q43229
type Q1190554
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { { ?w property:P361 ?s . ?s rdf:type ontology:Q7210356 . ?w rdf:type ontology:Q1190554 } UNION { ?w property:P361 ?s . ?s rdf:type ontology:Q7210356 . ?w rdf:type ontology:Q43229 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P361 resource:Q29552 . { VALUES ( ?r ) { ( ontology:Q1190554 ) ( ontology:Q43229 ) } . ?t rdf:type ?r } } } . FILTER ( ?x > ?v ) }
Chouannerie
1
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type political organization
type organization
action find_reverse_tuple_counts
relation part of
type political organization
type event
action count
action filter_multi_types
action find_reverse
entity Democratic Party
relation part of
type organization
type event
[[{'concept': 'organization'}, {'concept': 'event'}], 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { { ?w property:part_of ?s . ?s rdf:type ontology:political_organization . ?w rdf:type ontology:event } UNION { ?w property:part_of ?s . ?s rdf:type ontology:political_organization . ?w rdf:type ontology:organization } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:part_of resource:Democratic_Party . { VALUES ( ?r ) { ( ontology:event ) ( ontology:organization ) } . ?t rdf:type ?r } } } . FILTER ( ?x > ?v ) }
[]