Simple Question (Direct)
Simple Question
Q20100065
P512
Q3412758
USER
What is the degree held by Katharina Boele-Woelki ?
(Q20100065,P512,c(Q3412758))
action filter_type
action find
entity Q20100065
relation P512
type Q3412758
['Q20100065', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q3412758 . resource:Q20100065 property:P512 ?c }
Katharina Boele-Woelki
action filter_type
action find
entity Katharina Boele-Woelki
relation academic degree
type qualification
['Katharina Boele-Woelki', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:qualification . resource:Katharina_Boele-Woelki property:academic_degree ?c }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q20100065,P512,c(Q3412758))
action filter_type
action find
entity Q20100065
relation P512
type Q3412758
The degree held by Katharina Boele-Woelki is a [ANSWER]
['Q20100065', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q3412758 . resource:Q20100065 property:P512 ?c }
doctoral degree
The degree held by Katharina Boele-Woelki is a doctoral degree
doctoral degree
action filter_type
action find
entity Katharina Boele-Woelki
relation academic degree
type qualification
['Katharina Boele-Woelki', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:qualification . resource:Katharina_Boele-Woelki property:academic_degree ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20100065
P21
Q290
USER
Which sex does Katharina Boele-Woelki have ?
(Q20100065,P21,c(Q290))
action filter_type
action find
entity Q20100065
relation P21
type Q290
['Q20100065', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q20100065 property:P21 ?a }
Katharina Boele-Woelki
action filter_type
action find
entity Katharina Boele-Woelki
relation gender
type sex
['Katharina Boele-Woelki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Katharina_Boele-Woelki property:gender ?a }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q20100065,P21,c(Q290))
action filter_type
action find
entity Q20100065
relation P21
type Q290
Katharina Boele-Woelki has a [ANSWER]
['Q20100065', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q20100065 property:P21 ?a }
female
Katharina Boele-Woelki has a female
female
action filter_type
action find
entity Katharina Boele-Woelki
relation gender
type sex
['Katharina Boele-Woelki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Katharina_Boele-Woelki property:gender ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20100065
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q20100065
relation P106
type Q12737077
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q20100065 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Katharina Boele-Woelki
action filter_type
action find
entity Katharina Boele-Woelki
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Katharina_Boele-Woelki property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q1622272
SYSTEM
university teacher
Q1622272
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q20100065
relation P106
type Q12737077
The [ANSWER] is the profession of that person
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q20100065 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
university teacher
The university teacher is the profession of that person
university teacher
action filter_type
action find
entity Katharina Boele-Woelki
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Katharina_Boele-Woelki property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q1766380 Q20100065
P106
Q12737077
USER
And also Wolfgang Orth
AND((Q20100065,P106,c(Q12737077)), (Q1766380,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q20100065
relation P106
action find
entity Q1766380
relation P106
type Q12737077
{'AND': [['Q20100065', 'P106', {'concept': 'Q12737077'}], ['Q1766380', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { resource:Q20100065 property:P106 ?l . resource:Q1766380 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Wolfgang Orth Katharina Boele-Woelki
action filter_type
action intersection
action find
entity Katharina Boele-Woelki
relation occupation
action find
entity Wolfgang Orth
relation occupation
type occupation
{'AND': [['Katharina Boele-Woelki', 'occupation', {'concept': 'occupation'}], ['Wolfgang Orth', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { resource:Katharina_Boele-Woelki property:occupation ?l . resource:Wolfgang_Orth property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q1622272
SYSTEM
university teacher
Q1622272
AND((Q20100065,P106,c(Q12737077)), (Q1766380,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q20100065
relation P106
action find
entity Q1766380
relation P106
type Q12737077
[ANSWER]
{'AND': [['Q20100065', 'P106', {'concept': 'Q12737077'}], ['Q1766380', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { resource:Q20100065 property:P106 ?l . resource:Q1766380 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
university teacher
university teacher
action filter_type
action intersection
action find
entity Katharina Boele-Woelki
relation occupation
action find
entity Wolfgang Orth
relation occupation
type occupation
{'AND': [['Katharina Boele-Woelki', 'occupation', {'concept': 'occupation'}], ['Wolfgang Orth', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { resource:Katharina_Boele-Woelki property:occupation ?l . resource:Wolfgang_Orth property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1766380
P463
Q48204
USER
What voluntary association was Wolfgang Orth a member of?
(Q1622272,P463,c(Q48204))
action filter_type
action find
entity Q1766380
relation P463
type Q48204
['Q1622272', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?q WHERE { resource:Q1766380 property:P463 ?q . ?q rdf:type ontology:Q48204 }
Wolfgang Orth
action filter_type
action find
entity Wolfgang Orth
relation member of
type voluntary association
['university teacher', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?q WHERE { resource:Wolfgang_Orth property:member_of ?q . ?q rdf:type ontology:voluntary_association }
[]
voluntary association
Q1583587
SYSTEM
Mommsen Society
Q1583587
(Q1622272,P463,c(Q48204))
action filter_type
action find
entity Q1766380
relation P463
type Q48204
What voluntary association was Wolfgang Orth a member of
['Q1622272', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?q WHERE { resource:Q1766380 property:P463 ?q . ?q rdf:type ontology:Q48204 }
Mommsen Society
What voluntary association was Wolfgang Orth a member of
Mommsen Society
action filter_type
action find
entity Wolfgang Orth
relation member of
type voluntary association
['university teacher', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?q WHERE { resource:Wolfgang_Orth property:member_of ?q . ?q rdf:type ontology:voluntary_association }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q822820
Q48204
USER
And what about Bernard d'Espagnat?
(Q822820,P463,c(Q48204))
action filter_type
action find
entity Q822820
relation P463
type Q48204
['Q822820', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?a WHERE { resource:Q822820 property:P463 ?a . ?a rdf:type ontology:Q48204 }
Bernard d'Espagnat
action filter_type
action find
entity Bernard d'Espagnat
relation member of
type voluntary association
["Bernard d'Espagnat", 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?a WHERE { resource:Bernard_d'Espagnat property:member_of ?a . ?a rdf:type ontology:voluntary_association }
[]
voluntary association
Q23906146
SYSTEM
International Academy for Philosophy of Science
Q23906146
(Q822820,P463,c(Q48204))
action filter_type
action find
entity Q822820
relation P463
type Q48204
[ANSWER]
['Q822820', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?a WHERE { resource:Q822820 property:P463 ?a . ?a rdf:type ontology:Q48204 }
International Academy for Philosophy of Science
International Academy for Philosophy of Science
action filter_type
action find
entity Bernard d'Espagnat
relation member of
type voluntary association
["Bernard d'Espagnat", 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?a WHERE { resource:Bernard_d'Espagnat property:member_of ?a . ?a rdf:type ontology:voluntary_association }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q23906146 Q17698 Q270606
P17
Q15617994
USER
Is that voluntary association situated in Villanova Monferrato and Castelvecchio di Rocca Barbena ?
(Q23906146,P17,Q17698) (Q23906146,P17,Q270606)
action is_in
entity Q23906146
action intersection
action find_reverse
entity Q17698
relation P17
action find_reverse
entity Q270606
relation P17
['Q23906146', 'P17', 'Q17698'] ['Q23906146', 'P17', 'Q270606']
ASK WHERE { resource:Q23906146 property:P17 resource:Q17698 . resource:Q23906146 property:P17 resource:Q270606 }
International Academy for Philosophy of Science Villanova Monferrato Castelvecchio di Rocca Barbena
action is_in
entity International Academy for Philosophy of Science
action intersection
action find_reverse
entity Villanova Monferrato
relation country
action find_reverse
entity Castelvecchio di Rocca Barbena
relation country
['International Academy for Philosophy of Science', 'country', 'Villanova Monferrato'] ['International Academy for Philosophy of Science', 'country', 'Castelvecchio di Rocca Barbena']
ASK WHERE { resource:International_Academy_for_Philosophy_of_Science property:country resource:Villanova_Monferrato . resource:International_Academy_for_Philosophy_of_Science property:country resource:Castelvecchio_di_Rocca_Barbena }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q23906146,P17,Q17698) (Q23906146,P17,Q270606)
action is_in
entity Q23906146
action intersection
action find_reverse
entity Q17698
relation P17
action find_reverse
entity Q270606
relation P17
[ANSWER]
['Q23906146', 'P17', 'Q17698'] ['Q23906146', 'P17', 'Q270606']
ASK WHERE { resource:Q23906146 property:P17 resource:Q17698 . resource:Q23906146 property:P17 resource:Q270606 }
No
action is_in
entity International Academy for Philosophy of Science
action intersection
action find_reverse
entity Villanova Monferrato
relation country
action find_reverse
entity Castelvecchio di Rocca Barbena
relation country
['International Academy for Philosophy of Science', 'country', 'Villanova Monferrato'] ['International Academy for Philosophy of Science', 'country', 'Castelvecchio di Rocca Barbena']
ASK WHERE { resource:International_Academy_for_Philosophy_of_Science property:country resource:Villanova_Monferrato . resource:International_Academy_for_Philosophy_of_Science property:country resource:Castelvecchio_di_Rocca_Barbena }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q2342494 Q386724
USER
Which occupations are expressed in atmost 2 collectables and works ?
(c(Q2342494)|c(Q386724),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
value 2
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?m <= 2 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?h WHERE { { ?w property:P180 ?h . ?w rdf:type ontology:Q2342494 . ?h rdf:type ontology:Q12737077 } UNION { ?w property:P180 ?h . ?h rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q386724 } } GROUP BY ?h } }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type work
value 2
[[{'concept': 'collectable'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?m <= 2 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?h WHERE { { ?w property:depicts ?h . ?w rdf:type ontology:collectable . ?h rdf:type ontology:occupation } UNION { ?w property:depicts ?h . ?h rdf:type ontology:occupation . ?w rdf:type ontology:work } } GROUP BY ?h } }
[]
occupation collectable work
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q4991371 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q2730732 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q2342494)|c(Q386724),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
value 2
[ANSWERS] are expressed in atmost 2 collectables and works
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?m <= 2 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?h WHERE { { ?w property:P180 ?h . ?w rdf:type ontology:Q2342494 . ?h rdf:type ontology:Q12737077 } UNION { ?w property:P180 ?h . ?h rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q386724 } } GROUP BY ?h } }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner soldier goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor equestrian courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are expressed in atmost 2 collectables and works
farmer nurse tailor
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type work
value 2
[[{'concept': 'collectable'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?m <= 2 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?h WHERE { { ?w property:depicts ?h . ?w rdf:type ontology:collectable . ?h rdf:type ontology:occupation } UNION { ?w property:depicts ?h . ?h rdf:type ontology:occupation . ?w rdf:type ontology:work } } GROUP BY ?h } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P425
Q12737077 Q223557
USER
How many occupations or physical objects have that occupation as the associated field of occupation ?
(Q242468,P425,c(Q12737077)) (Q242468,P425,c(Q223557)) (Q131512,P425,c(Q12737077)) (Q131512,P425,c(Q223557)) (Q186360,P425,c(Q12737077)) (Q186360,P425,c(Q223557)) (Q242468,P425,c(Q12737077)) (Q242468,P425,c(Q223557))
['Q242468', 'P425', {'concept': 'Q12737077'}] ['Q242468', 'P425', {'concept': 'Q223557'}] ['Q131512', 'P425', {'concept': 'Q12737077'}] ['Q131512', 'P425', {'concept': 'Q223557'}] ['Q186360', 'P425', {'concept': 'Q12737077'}] ['Q186360', 'P425', {'concept': 'Q223557'}] ['Q242468', 'P425', {'concept': 'Q12737077'}] ['Q242468', 'P425', {'concept': 'Q223557'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q242468 property:P425 ?z } UNION { resource:Q242468 property:P425 ?y } UNION { resource:Q131512 property:P425 ?z } UNION { resource:Q131512 property:P425 ?y } UNION { resource:Q186360 property:P425 ?z } UNION { resource:Q186360 property:P425 ?y } UNION { resource:Q242468 property:P425 ?z } UNION { resource:Q242468 property:P425 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q223557 }
['tailor', 'field of this occupation', {'concept': 'occupation'}] ['tailor', 'field of this occupation', {'concept': 'physical object'}] ['farmer', 'field of this occupation', {'concept': 'occupation'}] ['farmer', 'field of this occupation', {'concept': 'physical object'}] ['nurse', 'field of this occupation', {'concept': 'occupation'}] ['nurse', 'field of this occupation', {'concept': 'physical object'}] ['tailor', 'field of this occupation', {'concept': 'occupation'}] ['tailor', 'field of this occupation', {'concept': 'physical object'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:tailor property:field_of_this_occupation ?z } UNION { resource:tailor property:field_of_this_occupation ?y } UNION { resource:farmer property:field_of_this_occupation ?z } UNION { resource:farmer property:field_of_this_occupation ?y } UNION { resource:nurse property:field_of_this_occupation ?z } UNION { resource:nurse property:field_of_this_occupation ?y } UNION { resource:tailor property:field_of_this_occupation ?z } UNION { resource:tailor property:field_of_this_occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:physical_object }
[]
occupation physical object
Quantitative|Count|Mult. entity type|Clarification
Q131512
SYSTEM
Did you mean farmer ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q242468 property:P425 ?z } UNION { resource:Q242468 property:P425 ?y } UNION { resource:Q131512 property:P425 ?z } UNION { resource:Q131512 property:P425 ?y } UNION { resource:Q186360 property:P425 ?z } UNION { resource:Q186360 property:P425 ?y } UNION { resource:Q242468 property:P425 ?z } UNION { resource:Q242468 property:P425 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q223557 }
Did you mean farmer ?
farmer
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:tailor property:field_of_this_occupation ?z } UNION { resource:tailor property:field_of_this_occupation ?y } UNION { resource:farmer property:field_of_this_occupation ?z } UNION { resource:farmer property:field_of_this_occupation ?y } UNION { resource:nurse property:field_of_this_occupation ?z } UNION { resource:nurse property:field_of_this_occupation ?y } UNION { resource:tailor property:field_of_this_occupation ?z } UNION { resource:tailor property:field_of_this_occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:physical_object }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant tailor. Could you tell me the answer for that?
(Q242468,P425,c(Q12737077)) (Q242468,P425,c(Q223557)) (Q131512,P425,c(Q12737077)) (Q131512,P425,c(Q223557)) (Q186360,P425,c(Q12737077)) (Q186360,P425,c(Q223557)) (Q242468,P425,c(Q12737077)) (Q242468,P425,c(Q223557))
Q242468
['Q242468', 'P425', {'concept': 'Q12737077'}] ['Q242468', 'P425', {'concept': 'Q223557'}] ['Q131512', 'P425', {'concept': 'Q12737077'}] ['Q131512', 'P425', {'concept': 'Q223557'}] ['Q186360', 'P425', {'concept': 'Q12737077'}] ['Q186360', 'P425', {'concept': 'Q223557'}] ['Q242468', 'P425', {'concept': 'Q12737077'}] ['Q242468', 'P425', {'concept': 'Q223557'}]
['tailor', 'field of this occupation', {'concept': 'occupation'}] ['tailor', 'field of this occupation', {'concept': 'physical object'}] ['farmer', 'field of this occupation', {'concept': 'occupation'}] ['farmer', 'field of this occupation', {'concept': 'physical object'}] ['nurse', 'field of this occupation', {'concept': 'occupation'}] ['nurse', 'field of this occupation', {'concept': 'physical object'}] ['tailor', 'field of this occupation', {'concept': 'occupation'}] ['tailor', 'field of this occupation', {'concept': 'physical object'}]
[]
SYSTEM
2
Q11460 Q652122
(Q242468,P425,c(Q12737077)) (Q242468,P425,c(Q223557)) (Q131512,P425,c(Q12737077)) (Q131512,P425,c(Q223557)) (Q186360,P425,c(Q12737077)) (Q186360,P425,c(Q223557)) (Q242468,P425,c(Q12737077)) (Q242468,P425,c(Q223557))
[ANSWER]
['Q242468', 'P425', {'concept': 'Q12737077'}] ['Q242468', 'P425', {'concept': 'Q223557'}] ['Q131512', 'P425', {'concept': 'Q12737077'}] ['Q131512', 'P425', {'concept': 'Q223557'}] ['Q186360', 'P425', {'concept': 'Q12737077'}] ['Q186360', 'P425', {'concept': 'Q223557'}] ['Q242468', 'P425', {'concept': 'Q12737077'}] ['Q242468', 'P425', {'concept': 'Q223557'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q242468 property:P425 ?z } UNION { resource:Q242468 property:P425 ?y } UNION { resource:Q131512 property:P425 ?z } UNION { resource:Q131512 property:P425 ?y } UNION { resource:Q186360 property:P425 ?z } UNION { resource:Q186360 property:P425 ?y } UNION { resource:Q242468 property:P425 ?z } UNION { resource:Q242468 property:P425 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q223557 }
clothing sewing
2
['tailor', 'field of this occupation', {'concept': 'occupation'}] ['tailor', 'field of this occupation', {'concept': 'physical object'}] ['farmer', 'field of this occupation', {'concept': 'occupation'}] ['farmer', 'field of this occupation', {'concept': 'physical object'}] ['nurse', 'field of this occupation', {'concept': 'occupation'}] ['nurse', 'field of this occupation', {'concept': 'physical object'}] ['tailor', 'field of this occupation', {'concept': 'occupation'}] ['tailor', 'field of this occupation', {'concept': 'physical object'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:tailor property:field_of_this_occupation ?z } UNION { resource:tailor property:field_of_this_occupation ?y } UNION { resource:farmer property:field_of_this_occupation ?z } UNION { resource:farmer property:field_of_this_occupation ?y } UNION { resource:nurse property:field_of_this_occupation ?z } UNION { resource:nurse property:field_of_this_occupation ?y } UNION { resource:tailor property:field_of_this_occupation ?z } UNION { resource:tailor property:field_of_this_occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:physical_object }
[]